diff --git a/app/Controllers/Admin/Cloudflare/RecordController.php b/app/Controllers/Admin/Cloudflare/RecordController.php index 2166427..83cf191 100644 --- a/app/Controllers/Admin/Cloudflare/RecordController.php +++ b/app/Controllers/Admin/Cloudflare/RecordController.php @@ -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) {