mirror of
https://github.com/slackhq/nebula.git
synced 2026-04-01 07:05:17 +02:00
oops
This commit is contained in:
@@ -510,8 +510,8 @@ func (f *Firewall) findUsableSNATPort(fp *firewall.Packet, c *conn) error {
|
|||||||
}
|
}
|
||||||
//increment and retry. There's probably better strategies out there
|
//increment and retry. There's probably better strategies out there
|
||||||
fp.RemotePort++
|
fp.RemotePort++
|
||||||
if fp.RemotePort < 0x7ff {
|
if fp.RemotePort < 0x7fff {
|
||||||
fp.RemotePort += 0x7ff // keep it ephemeral for now
|
fp.RemotePort += 0x7fff // keep it ephemeral for now
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user