diff options
Diffstat (limited to 'dhcpv4/client.go')
-rw-r--r-- | dhcpv4/client.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dhcpv4/client.go b/dhcpv4/client.go index 8a44338..9fd8501 100644 --- a/dhcpv4/client.go +++ b/dhcpv4/client.go @@ -137,14 +137,10 @@ func (c *Client) Exchange(ifname string, discover *DHCPv4, modifiers ...Modifier if err != nil { return conversation, err } - iface, err := net.InterfaceByName(ifname) - if err != nil { - return conversation, err - } // Discover if discover == nil { - discover, err = NewDiscovery(iface.HardwareAddr) + discover, err = NewDiscoveryForInterface(ifname) if err != nil { return conversation, err } |