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