vendor: Patch github.com/ccding/go-stun for user-visible spelling error

This commit is contained in:
Jakob Borg 2017-11-05 12:05:01 +01:00
parent d304498027
commit 166273b357
3 changed files with 9 additions and 9 deletions

View File

@ -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",
}
}

View File

@ -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
View File

@ -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
}
]
}
}