mirror of
https://github.com/ccding/go-stun.git
synced 2025-09-26 13:11:10 +08:00
MINOR: fix a few lint issues
This commit is contained in:
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@@ -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
|
||||
|
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user