Skip to content

Commit

Permalink
Add NATSymmetricUDPFirewall to punchable NATs (#5931)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olifre authored and AudriusButkevicius committed Aug 6, 2019
1 parent d43b0a4 commit edf2399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stun/stun.go
Expand Up @@ -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 {
Expand Down

0 comments on commit edf2399

Please sign in to comment.