summaryrefslogtreecommitdiffhomepage
path: root/device/peer.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-03 05:01:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-04 16:37:11 +0100
commitb8e85267cf22528a96cefba5f86bac5958ce0c58 (patch)
treed6441205ba32a2ea5cb6f8c5dcba80a6387024dd /device/peer.go
parent69f0fe67b63d90e523a5a1241fb1b46c2e8dbe03 (diff)
boundif: introduce API for socket binding
Diffstat (limited to 'device/peer.go')
-rw-r--r--device/peer.go4
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()