mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 16:46:52 +01:00
Find a refused packet's tunnel from its header, ask the lighthouse when probing, and address review
This commit is contained in:
1 parent
0f07faab0e
commit
b69cf4ecb4
11 files changed
+306
-41
No files matched your search
@@ -117,6 +117,11 @@ func (c *Control) SetUDPAddr(addr netip.AddrPort) {
|
||||
c.f.outside.(*udp.TesterConn).SetAddr(addr)
|
||||
}
|
||||
|
||||
// GetUDPAddrFor returns the underlay address this node sends to dst from, which differs by family for a dual stack node
|
||||
func (c *Control) GetUDPAddrFor(dst netip.AddrPort) netip.AddrPort {
|
||||
return c.f.outside.(*udp.TesterConn).GetAddrFor(dst)
|
||||
}
|
||||
|
||||
// SetDualStackUDPAddrs gives this node one underlay address per family, sending from whichever matches the
|
||||
// destination. An invalid AddrPort leaves the node without that family, sends to it fail with ENETUNREACH. Register
|
||||
// any address the node did not start on with the router as well or nothing will route back.
|
||||
|
||||
Reference in new issue
Block a user