peer: BestLocalAddress config option is no longer used.
This commit is contained in:
parent
a09d052f96
commit
0d508e6522
2 changed files with 0 additions and 4 deletions
|
@ -196,9 +196,6 @@ type Config struct {
|
||||||
// reported.
|
// reported.
|
||||||
NewestBlock HashFunc
|
NewestBlock HashFunc
|
||||||
|
|
||||||
// BestLocalAddress returns the best local address for a given address.
|
|
||||||
BestLocalAddress AddrFunc
|
|
||||||
|
|
||||||
// HostToNetAddress returns the netaddress for the given host. This can be
|
// HostToNetAddress returns the netaddress for the given host. This can be
|
||||||
// nil in which case the host will be parsed as an IP address.
|
// nil in which case the host will be parsed as an IP address.
|
||||||
HostToNetAddress HostToNetAddrFunc
|
HostToNetAddress HostToNetAddrFunc
|
||||||
|
|
|
@ -1539,7 +1539,6 @@ func newPeerConfig(sp *serverPeer) *peer.Config {
|
||||||
OnAlert: nil,
|
OnAlert: nil,
|
||||||
},
|
},
|
||||||
NewestBlock: sp.newestBlock,
|
NewestBlock: sp.newestBlock,
|
||||||
BestLocalAddress: sp.server.addrManager.GetBestLocalAddress,
|
|
||||||
HostToNetAddress: sp.server.addrManager.HostToNetAddress,
|
HostToNetAddress: sp.server.addrManager.HostToNetAddress,
|
||||||
Proxy: cfg.Proxy,
|
Proxy: cfg.Proxy,
|
||||||
UserAgentName: userAgentName,
|
UserAgentName: userAgentName,
|
||||||
|
|
Loading…
Reference in a new issue