Add a way to trigger punch backs via lighthouse (#394)

This commit is contained in:
Nathan Brown
2021-03-01 19:06:01 -06:00
committed by GitHub
parent 2a4beb41b9
commit b6234abfb3
6 changed files with 65 additions and 46 deletions

View File

@ -51,6 +51,11 @@ type HostInfo struct {
recvError int
remoteCidr *CIDRTree
// lastRebindCount is the other side of Interface.rebindCount, if these values don't match then we need to ask LH
// for a punch from the remote end of this tunnel. The goal being to prime their conntrack for our traffic just like
// with a handshake
lastRebindCount int8
lastRoam time.Time
lastRoamRemote *udpAddr
}