diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-07 01:24:06 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-07 01:26:25 -0600 |
commit | 59e556f24ec7503eda8ff15f026b2df44e096b6f (patch) | |
tree | 10418f3c24538e33dc199ae81634c01cc2f33635 /conn/conn.go | |
parent | 31faf4c1598c67ba3b2ade4471e0a80ee4b0c968 (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 'conn/conn.go')
-rw-r--r-- | conn/conn.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/conn/conn.go b/conn/conn.go index 16311e4..6e04386 100644 --- a/conn/conn.go +++ b/conn/conn.go @@ -50,11 +50,11 @@ func CreateBind(port uint16) (b Bind, actualPort uint16, err error) { return createBind(port) } -// BindToInterface is implemented by Bind objects that support being +// BindSocketToInterface is implemented by Bind objects that support being // tied to a single network interface. -type BindToInterface interface { - BindToInterface4(interfaceIndex uint32, blackhole bool) error - BindToInterface6(interfaceIndex uint32, blackhole bool) error +type BindSocketToInterface interface { + BindSocketToInterface4(interfaceIndex uint32, blackhole bool) error + BindSocketToInterface6(interfaceIndex uint32, blackhole bool) error } // An Endpoint maintains the source/destination caching for a peer. |