mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
p2p/nat: use default port constant
This commit is contained in:
parent
5e6d0ef1dc
commit
ef9f952ab3
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ func (s *stun) randomServers(n int) []string {
|
|||
func (s *stun) externalIP(server string) (net.IP, error) {
|
||||
_, _, err := net.SplitHostPort(server)
|
||||
if err != nil {
|
||||
server += ":3478"
|
||||
server += fmt.Sprintf(":%d", stunV2.DefaultPort)
|
||||
}
|
||||
|
||||
log.Trace("Attempting STUN binding request", "server", server)
|
||||
|
|
|
|||
Loading…
Reference in a new issue