Fix build after insomniacslk/dhcp constant moved

The AllDHCPRelayAgentsAndServers constant has moved from client6 to
dhcpv6 in insomniacslk/dhcp . This PR fixes the build after
https://github.com/insomniacslk/dhcp/pull/278

Signed-off-by: Andrea Barberio <insomniac@slackware.it>
This commit is contained in:
Andrea Barberio 2019-04-29 15:43:30 +01:00
parent 1a65f972c6
commit 4b3cbd556f

View File

@ -105,7 +105,7 @@ func NewClient(cfg ClientConfig) (*Client, error) {
raddr := cfg.RemoteAddr
if raddr == nil {
raddr = &net.UDPAddr{
IP: client6.AllDHCPRelayAgentsAndServers,
IP: dhcpv6.AllDHCPRelayAgentsAndServers,
Port: dhcpv6.DefaultServerPort,
}
}