fix: 适配支持RFC 3489/5389/5780检测

This commit is contained in:
spiritlhl
2025-07-22 05:24:41 +00:00
parent f1b1b72943
commit c17f7bbd12
5 changed files with 244 additions and 48 deletions

View File

@@ -13,6 +13,8 @@ func CheckType() string {
if model.NatMappingBehavior != "" && model.NatFilteringBehavior != "" {
if model.NatMappingBehavior == "inconclusive" || model.NatFilteringBehavior == "inconclusive" {
result = "Inconclusive"
} else if model.NatMappingBehavior == "endpoint independent (no NAT)" && model.NatFilteringBehavior == "endpoint independent" {
result = "Full Cone"
} else if model.NatMappingBehavior == "endpoint independent" && model.NatFilteringBehavior == "endpoint independent" {
result = "Full Cone"
} else if model.NatMappingBehavior == "endpoint independent" && model.NatFilteringBehavior == "address dependent" {