diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-03 05:01:06 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-04 16:37:11 +0100 |
commit | b8e85267cf22528a96cefba5f86bac5958ce0c58 (patch) | |
tree | d6441205ba32a2ea5cb6f8c5dcba80a6387024dd /device/peer.go | |
parent | 69f0fe67b63d90e523a5a1241fb1b46c2e8dbe03 (diff) |
boundif: introduce API for socket binding
Diffstat (limited to 'device/peer.go')
-rw-r--r-- | device/peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device/peer.go b/device/peer.go index af3ef9d..815dff4 100644 --- a/device/peer.go +++ b/device/peer.go @@ -258,10 +258,10 @@ func (peer *Peer) Stop() { peer.ZeroAndFlushAll() } -var roamingDisabled bool +var RoamingDisabled bool func (peer *Peer) SetEndpointFromPacket(endpoint Endpoint) { - if roamingDisabled { + if RoamingDisabled { return } peer.Lock() |