diff options
author | Andrea Barberio <insomniac@slackware.it> | 2019-04-29 13:52:22 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-04-29 15:44:25 +0100 |
commit | 03e9ac918544b248cd2d660195934d7c943cb4d7 (patch) | |
tree | a9b43d893419db1d567934dc56f23b2eaaf16e0d /examples | |
parent | 5c6ea15a40cc06ac0af833fa3ef883de3f32037b (diff) |
[server6] Server should join multicast address
The previous logic was wrong - there's no "listening" on multicast
address, the server should listen on the given address, and join the
multicast group. This PR fixes it.
Also moved the multicast addresses to a common package.
Tested with unit/integ tests, and with coredhcp.
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/server6/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server6/main.go b/examples/server6/main.go index 318937f..363a3ae 100644 --- a/examples/server6/main.go +++ b/examples/server6/main.go @@ -18,7 +18,7 @@ func main() { IP: net.ParseIP("::1"), Port: dhcpv6.DefaultServerPort, } - server, err := server6.NewServer(laddr, handler) + server, err := server6.NewServer("", laddr, handler) if err != nil { log.Fatal(err) } |