summaryrefslogtreecommitdiffhomepage
path: root/device/uapi.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-11-11 03:13:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-11-15 23:40:47 +0100
commit111e0566dce3fc3489cb75ee40b752b1b738e9c6 (patch)
tree0a107f1c0617ffb22f13f659e38b10645568b60b /device/uapi.go
parente3134bf6659b13bbc4713fe2b9147463cc9ff374 (diff)
device: make new peers inherit broken mobile semantics
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/uapi.go')
-rw-r--r--device/uapi.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/device/uapi.go b/device/uapi.go
index 019249d..e33355d 100644
--- a/device/uapi.go
+++ b/device/uapi.go
@@ -261,6 +261,7 @@ func (peer *ipcSetPeer) handlePostConfig() {
if peer.Peer == nil {
return
}
+ peer.disableRoaming = peer.device.net.brokenRoaming && peer.endpoint != nil
if !peer.dummy && peer.device.isUp() {
peer.Start()
if peer.pkaOn {