Skip to content

Commit

Permalink
MINOR: fix a few lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ccding committed Apr 19, 2022
1 parent 877ebaf commit 9875aa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions stun/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}

Expand Down

0 comments on commit 9875aa3

Please sign in to comment.