Commit 2e47c238 authored by Francis Dupont's avatar Francis Dupont
Browse files

[4106_rebase] Bind to ::1 too

parent 8c17b276
...@@ -88,6 +88,8 @@ int Dhcp4o6IpcBase::open(uint16_t port, int side) { ...@@ -88,6 +88,8 @@ int Dhcp4o6IpcBase::open(uint16_t port, int side) {
} else { } else {
local6.sin6_port = htons(port + 1); local6.sin6_port = htons(port + 1);
} }
// We'll connect to the loopback address so bind to it too.
local6.sin6_addr.s6_addr[15] = 1;
if (bind(sock, (struct sockaddr *)&local6, sizeof(local6)) < 0) { if (bind(sock, (struct sockaddr *)&local6, sizeof(local6)) < 0) {
::close(sock); ::close(sock);
isc_throw(Unexpected, "Failed to bind DHCP4o6 socket."); isc_throw(Unexpected, "Failed to bind DHCP4o6 socket.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment