summaryrefslogtreecommitdiffhomepage
path: root/device
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-06-07 01:24:06 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-06-07 01:26:25 -0600
commit59e556f24ec7503eda8ff15f026b2df44e096b6f (patch)
tree10418f3c24538e33dc199ae81634c01cc2f33635 /device
parent31faf4c1598c67ba3b2ade4471e0a80ee4b0c968 (diff)
conn: fix windows situation with boundif
This was evidently never tested before committing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device')
-rw-r--r--device/bindsocketshim.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/device/bindsocketshim.go b/device/bindsocketshim.go
index c2555b8..896c7d2 100644
--- a/device/bindsocketshim.go
+++ b/device/bindsocketshim.go
@@ -17,8 +17,8 @@ func (device *Device) BindSocketToInterface4(interfaceIndex uint32, blackhole bo
return errors.New("Bind is not yet initialized")
}
- if iface, ok := device.net.bind.(conn.BindToInterface); ok {
- return iface.BindToInterface4(interfaceIndex, blackhole)
+ if iface, ok := device.net.bind.(conn.BindSocketToInterface); ok {
+ return iface.BindSocketToInterface4(interfaceIndex, blackhole)
}
return nil
}
@@ -29,8 +29,8 @@ func (device *Device) BindSocketToInterface6(interfaceIndex uint32, blackhole bo
return errors.New("Bind is not yet initialized")
}
- if iface, ok := device.net.bind.(conn.BindToInterface); ok {
- return iface.BindToInterface6(interfaceIndex, blackhole)
+ if iface, ok := device.net.bind.(conn.BindSocketToInterface); ok {
+ return iface.BindSocketToInterface6(interfaceIndex, blackhole)
}
return nil
}