From edf2399ce67832130a6fe54ecd65b6e851186b78 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Tue, 6 Aug 2019 13:26:02 +0200 Subject: [PATCH] Add NATSymmetricUDPFirewall to punchable NATs (#5931) NATSymmetricUDPFirewall actually is not NAT at all, but means the machine has a global IP address and an UDP firewall in front (RFC calls it Symmetric UDP Firewall). This is punchable fine, both theoretically and also practically in testing. --- lib/stun/stun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stun/stun.go b/lib/stun/stun.go index 75e5ff04924..87ffbd7a785 100644 --- a/lib/stun/stun.go +++ b/lib/stun/stun.go @@ -304,7 +304,7 @@ func (s *Service) String() string { } func (s *Service) isCurrentNATTypePunchable() bool { - return s.natType == NATNone || s.natType == NATPortRestricted || s.natType == NATRestricted || s.natType == NATFull + return s.natType == NATNone || s.natType == NATPortRestricted || s.natType == NATRestricted || s.natType == NATFull || s.natType == NATSymmetricUDPFirewall } func areDifferent(first, second *Host) bool {