Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored May 5, 2024
1 parent d485e5a commit d16952b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ func main() {
fmt.Println("NAT Type: inconclusive")
} else if NatMappingBehavior == "endpoint independent" && NatFilteringBehavior == "endpoint independent" {
fmt.Println("NAT Type: Full Cone")
} else if strings.Contains(NatMappingBehavior, "endpoint independent") && strings.Contains(NatFilteringBehavior, "address dependent") {
} else if NatMappingBehavior == "endpoint independent" && NatFilteringBehavior == "address dependent" {
fmt.Println("NAT Type: Restricted Cone")
} else if strings.Contains(NatMappingBehavior, "endpoint independent") && strings.Contains(NatFilteringBehavior, "address and port dependent") {
} else if NatMappingBehavior == "endpoint independent" && NatFilteringBehavior == "address and port dependent" {
fmt.Println("NAT Type: Port Restricted Cone")
} else if NatMappingBehavior == "address dependent" || NatMappingBehavior == "address and port dependent" {
} else if NatMappingBehavior == "address and port dependent" && NatFilteringBehavior == "address and port dependent" {
fmt.Println("NAT Type: Symmetric")
} else {
fmt.Printf("NAT Type: %v[NatMappingBehavior] %v[NatFilteringBehavior]\n", NatMappingBehavior, NatFilteringBehavior)
Expand Down

0 comments on commit d16952b

Please sign in to comment.