summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/client.go
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2018-02-08 07:45:34 +0000
committerGitHub <noreply@github.com>2018-02-08 07:45:34 +0000
commitac949192ce781902de712ea495b04fc84709ac2e (patch)
tree44ed70b77cb3911dda30ad33dd595cf2527de8c6 /dhcpv4/client.go
parent7f7030121c9f6f75cfcdd8d3b58f5bd2143a6025 (diff)
parentd4666bc14118b32cc22ad68da36dbde8e3a93374 (diff)
Merge pull request #2 from insomniacslk/bindtodevice_darwin
Added OS-specific implementations for binding to a network device
Diffstat (limited to 'dhcpv4/client.go')
-rw-r--r--dhcpv4/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/client.go b/dhcpv4/client.go
index 145a7ef..55f303d 100644
--- a/dhcpv4/client.go
+++ b/dhcpv4/client.go
@@ -75,7 +75,7 @@ func (c *Client) Exchange(ifname string, d *DHCPv4) ([]DHCPv4, error) {
if err != nil {
return conversation, err
}
- err = syscall.BindToDevice(fd, ifname)
+ err = BindToInterface(fd, ifname)
if err != nil {
return conversation, err
}