mirror of
https://github.com/oneclickvirt/gostun.git
synced 2025-10-04 14:52:49 +08:00
fix: 适配支持RFC 3489/5389/5780检测
This commit is contained in:
@@ -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" {
|
||||
|
Reference in New Issue
Block a user