Enable roaming for mobile (#827)

This commit is contained in:
Misha Bragin
2023-04-28 16:26:54 +02:00
committed by GitHub
parent 7f5e1c623e
commit e096ec39d5
2 changed files with 56 additions and 11 deletions

View File

@@ -52,7 +52,9 @@ func (t *tunDevice) Create() error {
log.Debugf("attaching to interface %v", name)
t.device = device.NewDevice(tunDevice, t.iceBind, device.NewLogger(device.LogLevelSilent, "[wiretrustee] "))
t.device.DisableSomeRoamingForBrokenMobileSemantics()
// without this property mobile devices can discover remote endpoints if the configured one was wrong.
// this helps with support for the older NetBird clients that had a hardcoded direct mode
//t.device.DisableSomeRoamingForBrokenMobileSemantics()
err = t.device.Up()
if err != nil {