2020-10-07 08:17:48 +00:00
|
|
|
/* SPDX-License-Identifier: MIT
|
|
|
|
*
|
2021-01-28 16:52:15 +00:00
|
|
|
* Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
|
2020-10-07 08:17:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package device
|
|
|
|
|
|
|
|
func (device *Device) DisableSomeRoamingForBrokenMobileSemantics() {
|
|
|
|
device.peers.RLock()
|
|
|
|
for _, peer := range device.peers.keyMap {
|
|
|
|
peer.Lock()
|
|
|
|
peer.disableRoaming = peer.endpoint != nil
|
2021-04-12 22:19:35 +00:00
|
|
|
peer.Unlock()
|
2020-10-07 08:17:48 +00:00
|
|
|
}
|
|
|
|
device.peers.RUnlock()
|
2020-11-06 17:01:09 +00:00
|
|
|
}
|