tunnel: use more subtle roaming escape hatch

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2020-10-07 10:21:02 +02:00
parent ceb3095a0a
commit 5b5ba88a97
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,6 @@ type TunnelHandle struct {
var tunnelHandles map[int32]TunnelHandle
func init() {
device.RoamingDisabled = true
tunnelHandles = make(map[int32]TunnelHandle)
signals := make(chan os.Signal)
signal.Notify(signals, unix.SIGUSR2)
@@ -91,6 +90,7 @@ func wgTurnOn(ifnameRef string, tunFd int32, settings string) int32 {
logger.Error.Println(setError)
return -1
}
device.DisableSomeRoamingForBrokenMobileSemantics()
var uapi net.Listener