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.
This commit is contained in:
Oliver Freyermuth authored and Audrius Butkevicius committed 2019-08-06 12:26:02 +01:00
1 parent d43b0a4395
commit edf2399ce6
1 file changed
+1 -1
+1 -1
View File
@@ -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 {