mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 23:56: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
@@ -967,7 +967,8 @@ func (r *R) getControl(p *udp.Packet) *nebula.Control {
|
||||
|
||||
c, ok := r.inNat[toAddr]
|
||||
if ok {
|
||||
r.outNat[outNatKey{from: c.GetUDPAddr(), to: fromAddr}] = toAddr
|
||||
// Key the return path on the address the receiver will answer from, which is per family for a dual stack node
|
||||
r.outNat[outNatKey{from: c.GetUDPAddrFor(fromAddr), to: fromAddr}] = toAddr
|
||||
return c
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user