diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-29 18:46:31 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-29 18:46:31 +0100 |
commit | 471f7ff08e897a6b4f2779e10d28aeb0a5b9e0e4 (patch) | |
tree | 7a1e4381ec8d3dc906efd4ddf82ee5f75da9a28a /src/timers.go | |
parent | af464cff00fb9b78499cf4875d687bfa33e12082 (diff) |
Added cross namespace TUN status detection
Diffstat (limited to 'src/timers.go')
-rw-r--r-- | src/timers.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/timers.go b/src/timers.go index 31165a3..d372b0d 100644 --- a/src/timers.go +++ b/src/timers.go @@ -321,8 +321,14 @@ func (peer *Peer) RoutineHandshakeInitiator() { goto BeginHandshakes
case <-timeout.C:
- // TODO: Clear source address for peer
- continue
+
+ // clear source address of peer
+
+ peer.mutex.Lock()
+ if peer.endpoint != nil {
+ peer.endpoint.ClearSrc()
+ }
+ peer.mutex.Unlock()
}
}
|