github.com/tailscale/wireguard-go@v0.0.20201119-0.20210522003738-46b531feb08a/device/mobilequirks.go (about) 1 /* SPDX-License-Identifier: MIT 2 * 3 * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved. 4 */ 5 6 package device 7 8 func (device *Device) DisableSomeRoamingForBrokenMobileSemantics() { 9 device.peers.RLock() 10 for _, peer := range device.peers.keyMap { 11 peer.Lock() 12 peer.disableRoaming = peer.endpoint != nil 13 peer.Unlock() 14 } 15 device.peers.RUnlock() 16 }