Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
2e47c238
Commit
2e47c238
authored
Jun 06, 2016
by
Francis Dupont
Browse files
[4106_rebase] Bind to ::1 too
parent
8c17b276
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/dhcp4o6_ipc.cc
View file @
2e47c238
...
...
@@ -88,6 +88,8 @@ int Dhcp4o6IpcBase::open(uint16_t port, int side) {
}
else
{
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
)
{
::
close
(
sock
);
isc_throw
(
Unexpected
,
"Failed to bind DHCP4o6 socket."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment