MINOR: fix a few lint issues

This commit is contained in:
Cong Ding
2022-04-18 21:44:25 -05:00
parent 877ebaff7b
commit 9875aa3210
2 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: ^1.13 go-version: ^1.14
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory

View File

@@ -86,10 +86,10 @@ func init() {
// Defined in RFC 3489 // Defined in RFC 3489
natNormalTypeStr = map[NATBehavior]string{ natNormalTypeStr = map[NATBehavior]string{
NATBehavior{BehaviorTypeEndpoint, BehaviorTypeEndpoint}: "Full cone NAT", {BehaviorTypeEndpoint, BehaviorTypeEndpoint}: "Full cone NAT",
NATBehavior{BehaviorTypeEndpoint, BehaviorTypeAddr}: "Restricted cone NAT", {BehaviorTypeEndpoint, BehaviorTypeAddr}: "Restricted cone NAT",
NATBehavior{BehaviorTypeEndpoint, BehaviorTypeAddrAndPort}: "Port Restricted cone NAT", {BehaviorTypeEndpoint, BehaviorTypeAddrAndPort}: "Port Restricted cone NAT",
NATBehavior{BehaviorTypeAddrAndPort, BehaviorTypeAddrAndPort}: "Symmetric NAT", {BehaviorTypeAddrAndPort, BehaviorTypeAddrAndPort}: "Symmetric NAT",
} }
} }