Skip to content

Commit

Permalink
Merge pull request ethereum#28 from rus-alex/fix/netstat-check
Browse files Browse the repository at this point in the history
fix of netstat check
  • Loading branch information
uprendis committed Jun 17, 2022
2 parents aa62ade + 8dec1a2 commit 31e4934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p2p/netutil/netstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func UdpPortListeners(port int) (processes map[int]string, err error) {
return int(se.LocalAddr.Port) == port
})
if err != nil {
return
continue
}

for _, listener := range binds {
Expand Down
2 changes: 1 addition & 1 deletion p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func (srv *Server) setupDiscovery() error {

listeners, err := netutil.UdpPortListeners(addr.Port)
if err != nil {
return err
srv.log.Warn("UDP port netstat", "addr", addr, "err", err)
}
if len(listeners) > 0 {
err = errAlreadyListened
Expand Down

0 comments on commit 31e4934

Please sign in to comment.