From 191564d9705e3f77d95db3af25b762d6d9c0f5b7 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 31 Jul 2024 09:56:18 +0200 Subject: [PATCH] [#3477] Set DHCPv6 HTTP default addres to ::1 --- src/bin/dhcp6/ctrl_dhcp6_srv.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/dhcp6/ctrl_dhcp6_srv.cc b/src/bin/dhcp6/ctrl_dhcp6_srv.cc index ac8952256d..43eb8392c8 100644 --- a/src/bin/dhcp6/ctrl_dhcp6_srv.cc +++ b/src/bin/dhcp6/ctrl_dhcp6_srv.cc @@ -1109,6 +1109,9 @@ ControlledDhcpv6Srv::ControlledDhcpv6Srv(uint16_t server_port /*= DHCP6_SERVER_P CommandMgr::instance().setIOService(getIOService()); HttpCommandMgr::instance().setIOService(getIOService()); + // Set the HTTP default socket address to the IPv6 (vs IPv4) loopback. + HttpCommandConfig::DEFAULT_SOCKET_ADDRESS = IOAddress("::1"); + // Set the HTTP authentication default realm. HttpCommandConfig::DEFAULT_AUTHENTICATION_REALM = "kea-dhcpv6-server";