Add comment for double nat

This commit is contained in:
Arnaud 2026-05-25 12:07:15 +04:00
parent f68dd0b037
commit ede9bb1bfe
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

@ -50,7 +50,9 @@ proc setFiltering*(r: NatRouter, filtering: FilteringBehavior) =
proc allowInbound(r: NatRouter, remote: TransportAddress, localPort: Port): bool =
case r.filtering
of DoubleNat:
return false # always blocks: simulates a scenario where inbound connections are never possible
return
false
# always blocks: simulates a scenario where inbound connections are never possible
of EndpointIndependent:
return true
else: