Added cross namespace TUN status detection

This commit is contained in:
Mathias Hall-Andersen
2017-11-29 18:46:31 +01:00
parent af464cff00
commit 471f7ff08e
5 changed files with 35 additions and 8 deletions
+8 -2
View File
@@ -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()
}
}