conn: fix windows situation with boundif
This was evidently never tested before committing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user