mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-27 10:32:44 +00:00
Return fake IP even when there is no conn
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ func (pc peerConn) RemoteIP() net.IP {
|
||||
return pc.ips[0]
|
||||
}
|
||||
|
||||
if pc.conn.RemoteAddr().String() == "pipe" {
|
||||
if pc.conn == nil || pc.conn.RemoteAddr().String() == "pipe" {
|
||||
pc.ips = []net.IP{
|
||||
net.IP{172, 16, 0, byte(atomic.AddUint32(&testIPSuffix, 1))},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user