mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
vendor: Patch github.com/ccding/go-stun for user-visible spelling error
This commit is contained in:
parent
d304498027
commit
166273b357
8
vendor/github.com/ccding/go-stun/stun/const.go
generated
vendored
8
vendor/github.com/ccding/go-stun/stun/const.go
generated
vendored
@ -37,10 +37,10 @@ const (
|
||||
NATNone
|
||||
NATBlocked
|
||||
NATFull
|
||||
NATSymetric
|
||||
NATSymmetric
|
||||
NATRestricted
|
||||
NATPortRestricted
|
||||
NATSymetricUDPFirewall
|
||||
NATSymmetricUDPFirewall
|
||||
)
|
||||
|
||||
var natStr map[NATType]string
|
||||
@ -51,11 +51,11 @@ func init() {
|
||||
NATUnknown: "Unexpected response from the STUN server",
|
||||
NATBlocked: "UDP is blocked",
|
||||
NATFull: "Full cone NAT",
|
||||
NATSymetric: "Symetric NAT",
|
||||
NATSymmetric: "Symmetric NAT",
|
||||
NATRestricted: "Restricted NAT",
|
||||
NATPortRestricted: "Port restricted NAT",
|
||||
NATNone: "Not behind a NAT",
|
||||
NATSymetricUDPFirewall: "Symetric UDP firewall",
|
||||
NATSymmetricUDPFirewall: "Symmetric UDP firewall",
|
||||
}
|
||||
}
|
||||
|
||||
|
4
vendor/github.com/ccding/go-stun/stun/discover.go
generated
vendored
4
vendor/github.com/ccding/go-stun/stun/discover.go
generated
vendored
@ -114,7 +114,7 @@ func (c *Client) discover(conn net.PacketConn, addr *net.UDPAddr) (NATType, *Hos
|
||||
}
|
||||
if identical {
|
||||
if resp == nil {
|
||||
return NATSymetricUDPFirewall, mappedAddr, nil
|
||||
return NATSymmetricUDPFirewall, mappedAddr, nil
|
||||
}
|
||||
return NATNone, mappedAddr, nil
|
||||
}
|
||||
@ -161,5 +161,5 @@ func (c *Client) discover(conn net.PacketConn, addr *net.UDPAddr) (NATType, *Hos
|
||||
}
|
||||
return NATRestricted, mappedAddr, nil
|
||||
}
|
||||
return NATSymetric, mappedAddr, nil
|
||||
return NATSymmetric, mappedAddr, nil
|
||||
}
|
||||
|
6
vendor/manifest
vendored
6
vendor/manifest
vendored
@ -59,9 +59,9 @@
|
||||
},
|
||||
{
|
||||
"importpath": "github.com/ccding/go-stun/stun",
|
||||
"repository": "https://github.com/ccding/go-stun",
|
||||
"repository": "https://github.com/calmh/go-stun",
|
||||
"vcs": "git",
|
||||
"revision": "04a4eed61c57ecc9903f8983d1d2c17b88d2e9e1",
|
||||
"revision": "9d33469f1f20a1674659be94ac9ca94ab5f06f58",
|
||||
"branch": "master",
|
||||
"path": "/stun",
|
||||
"notests": true
|
||||
@ -679,4 +679,4 @@
|
||||
"notests": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user