diff options
author | Andrea Barberio <insomniac@slackware.it> | 2018-11-20 19:27:53 +0000 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2018-11-20 21:20:42 +0000 |
commit | bbaa1a7aa2044c0d954c7f10f288c2730cba421c (patch) | |
tree | a889f2054e58802bc3d720733e633a17a81fac1f /dhcpv6/server.go | |
parent | 0f072cd86cc36cf9bf7adac6b5f483f20e183162 (diff) |
Added example for DHCPv6 server
Diffstat (limited to 'dhcpv6/server.go')
-rw-r--r-- | dhcpv6/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/server.go b/dhcpv6/server.go index b7eedfa..8996bfb 100644 --- a/dhcpv6/server.go +++ b/dhcpv6/server.go @@ -42,7 +42,7 @@ func handler(conn net.PacketConn, peer net.Addr, m dhcpv6.DHCPv6) { func main() { laddr := net.UDPAddr{ IP: net.ParseIP("::1"), - Port: 547, + Port: dhcpv6.DefaultServerPort, } server := dhcpv6.NewServer(laddr, handler) |