summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/server.go
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-11-20 19:27:53 +0000
committerinsomniac <insomniacslk@users.noreply.github.com>2018-11-20 21:20:42 +0000
commitbbaa1a7aa2044c0d954c7f10f288c2730cba421c (patch)
treea889f2054e58802bc3d720733e633a17a81fac1f /dhcpv6/server.go
parent0f072cd86cc36cf9bf7adac6b5f483f20e183162 (diff)
Added example for DHCPv6 server
Diffstat (limited to 'dhcpv6/server.go')
-rw-r--r--dhcpv6/server.go2
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)