diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 156b77f..01ee9e6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: ^1.13 + go-version: ^1.14 id: go - name: Check out code into the Go module directory diff --git a/stun/const.go b/stun/const.go index e1faa9f..5e2e52f 100644 --- a/stun/const.go +++ b/stun/const.go @@ -86,10 +86,10 @@ func init() { // Defined in RFC 3489 natNormalTypeStr = map[NATBehavior]string{ - NATBehavior{BehaviorTypeEndpoint, BehaviorTypeEndpoint}: "Full cone NAT", - NATBehavior{BehaviorTypeEndpoint, BehaviorTypeAddr}: "Restricted cone NAT", - NATBehavior{BehaviorTypeEndpoint, BehaviorTypeAddrAndPort}: "Port Restricted cone NAT", - NATBehavior{BehaviorTypeAddrAndPort, BehaviorTypeAddrAndPort}: "Symmetric NAT", + {BehaviorTypeEndpoint, BehaviorTypeEndpoint}: "Full cone NAT", + {BehaviorTypeEndpoint, BehaviorTypeAddr}: "Restricted cone NAT", + {BehaviorTypeEndpoint, BehaviorTypeAddrAndPort}: "Port Restricted cone NAT", + {BehaviorTypeAddrAndPort, BehaviorTypeAddrAndPort}: "Symmetric NAT", } }