mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-22 16:34:25 +01:00
Be more like a library to support mobile (#247)
This commit is contained in:
@@ -32,3 +32,12 @@ func NewListenConfig(multi bool) net.ListenConfig {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (u *udpConn) Rebind() error {
|
||||
file, err := u.File()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return syscall.SetsockoptInt(int(file.Fd()), unix.IPPROTO_IP, unix.IP_BOUND_IF, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user