From 7f3eb9ed51ec24eb5b903507b5c90c2d646e9671 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Mon, 20 Oct 2025 19:21:45 +0200 Subject: [PATCH] Fix dns code in kea --- api/src/DhcpBundle/Controller/DhcpController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/DhcpBundle/Controller/DhcpController.php b/api/src/DhcpBundle/Controller/DhcpController.php index daa3c4f..088eb9f 100644 --- a/api/src/DhcpBundle/Controller/DhcpController.php +++ b/api/src/DhcpBundle/Controller/DhcpController.php @@ -1032,7 +1032,7 @@ public function modifyDhcpSubnet(Request $request): JsonResponse if (!empty($DNS)) { $newSubnet["option-data"][] = [ "name" => "domain-name-servers", - "code" => 23, + "code" => 6, "space" => "dhcp4", "csv-format" => true, "data" => $DNS @@ -1111,7 +1111,7 @@ public function modifyDhcpSubnet(Request $request): JsonResponse 'component' => $component, 'http_code' => Response::HTTP_OK, 'desc' => $responseSuccess, - 'params' => ['subnet_id' => $subnetId] + 'params' => [$input] ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); return new JsonResponse(['success' => $responseSuccess], Response::HTTP_OK); }