preserve original address and dial it instead of self-reported address (#1994)

Refs #1720
This commit is contained in:
Anton Kaliaev
2018-07-18 13:23:29 +04:00
committed by GitHub
parent 6c4ca140ed
commit b31ee798bd
5 changed files with 44 additions and 21 deletions

View File

@ -206,3 +206,4 @@ func (tp *bcrTestPeer) IsPersistent() bool { return true }
func (tp *bcrTestPeer) Get(s string) interface{} { return s }
func (tp *bcrTestPeer) Set(string, interface{}) {}
func (tp *bcrTestPeer) RemoteIP() net.IP { return []byte{127, 0, 0, 1} }
func (tp *bcrTestPeer) OriginalAddr() *p2p.NetAddress { return nil }