浏览代码

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.
Oliver Freyermuth 6 年之前
父节点
当前提交
edf2399ce6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/stun/stun.go

+ 1 - 1
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 {