|
@@ -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.");
|