This commit is contained in:
JackDoan
2026-02-19 15:57:02 -06:00
parent dd786cddf1
commit 879b77d076

View File

@@ -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
} }
} }