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); }