removed self connect log
This commit is contained in:
parent
04b6e413d9
commit
a9a564c226
2
peer.go
2
peer.go
@ -369,8 +369,6 @@ func (p *Peer) Start() {
|
|||||||
peerHost, peerPort, _ := net.SplitHostPort(p.conn.LocalAddr().String())
|
peerHost, peerPort, _ := net.SplitHostPort(p.conn.LocalAddr().String())
|
||||||
servHost, servPort, _ := net.SplitHostPort(p.conn.RemoteAddr().String())
|
servHost, servPort, _ := net.SplitHostPort(p.conn.RemoteAddr().String())
|
||||||
if peerHost == servHost {
|
if peerHost == servHost {
|
||||||
log.Println("Connected to self")
|
|
||||||
|
|
||||||
p.Stop()
|
p.Stop()
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user