mirror of
https://github.com/ccding/go-stun.git
synced 2025-09-26 21:15:52 +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
|
- 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
|
||||||
|
@@ -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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user