cfmgrv4 init...3

This commit is contained in:
최준흠 2024-10-17 10:15:50 +09:00
parent e318f06a0e
commit d8fe875eec

View File

@ -110,6 +110,12 @@ class RecordController extends CloudflareController
}
$cnt++;
}
//Type이 A형식일경우 IP형태인지 확인
if ($this->formDatas['type'] === 'A') {
if (!$this->helper->isIPAddress($this->formDatas['content'], $this->formDatas['type'])) {
throw new \Exception("{$this->formDatas['type']}, {$this->formDatas['content']} 형식 오류[사설IP 않됨]");
}
}
//Socket처리
$entitys = [];
foreach ($this->formDatas['hosts'] as $host) {