mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-22 07:13:09 +01:00
device: format a few things
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
3b490f30aa
commit
5ca1218a5c
@ -13,4 +13,4 @@ func (device *Device) DisableSomeRoamingForBrokenMobileSemantics() {
|
|||||||
peer.disableRoaming = peer.endpoint != nil
|
peer.disableRoaming = peer.endpoint != nil
|
||||||
}
|
}
|
||||||
device.peers.RUnlock()
|
device.peers.RUnlock()
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,6 @@ func (peer *Peer) Stop() {
|
|||||||
peer.ZeroAndFlushAll()
|
peer.ZeroAndFlushAll()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (peer *Peer) SetEndpointFromPacket(endpoint conn.Endpoint) {
|
func (peer *Peer) SetEndpointFromPacket(endpoint conn.Endpoint) {
|
||||||
if peer.disableRoaming {
|
if peer.disableRoaming {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user