From 2d76fc9d291ab650a39c54d5affe90ebf0a4cea3 Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Mon, 28 Jan 2019 00:43:15 +0000 Subject: [PATCH] internal/dhcp6: fix build after DHCP library API change --- internal/dhcp6/dhcp6.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/dhcp6/dhcp6.go b/internal/dhcp6/dhcp6.go index a89b999..0795aa1 100644 --- a/internal/dhcp6/dhcp6.go +++ b/internal/dhcp6/dhcp6.go @@ -23,6 +23,7 @@ import ( "time" "github.com/insomniacslk/dhcp/dhcpv6" + "github.com/insomniacslk/dhcp/dhcpv6/client6" "github.com/insomniacslk/dhcp/iana" ) @@ -103,7 +104,7 @@ func NewClient(cfg ClientConfig) (*Client, error) { raddr := cfg.RemoteAddr if raddr == nil { raddr = &net.UDPAddr{ - IP: dhcpv6.AllDHCPRelayAgentsAndServers, + IP: client6.AllDHCPRelayAgentsAndServers, Port: dhcpv6.DefaultServerPort, } } @@ -147,8 +148,8 @@ func NewClient(cfg ClientConfig) (*Client, error) { Conn: conn, duid: duid, transactionIDs: cfg.TransactionIDs, - ReadTimeout: dhcpv6.DefaultReadTimeout, - WriteTimeout: dhcpv6.DefaultWriteTimeout, + ReadTimeout: client6.DefaultReadTimeout, + WriteTimeout: client6.DefaultWriteTimeout, }, nil }