Make go vet happy.
This commit is contained in:
parent
465327c62d
commit
3ca1e82f66
2 changed files with 5 additions and 2 deletions
|
@ -557,7 +557,6 @@ func (a *AddrManager) GetAddress(class string, newBias int) *knownAddress {
|
||||||
factor *= 1.2
|
factor *= 1.2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AddrManager) find(addr *btcwire.NetAddress) *knownAddress {
|
func (a *AddrManager) find(addr *btcwire.NetAddress) *knownAddress {
|
||||||
|
|
6
peer.go
6
peer.go
|
@ -1162,7 +1162,11 @@ func newOutboundPeer(s *server, addr string, persistent bool) *peer {
|
||||||
dial := net.Dial
|
dial := net.Dial
|
||||||
faddr := addr
|
faddr := addr
|
||||||
if cfg.Proxy != "" {
|
if cfg.Proxy != "" {
|
||||||
proxy := &socks.Proxy{cfg.Proxy, cfg.ProxyUser, cfg.ProxyPass}
|
proxy := &socks.Proxy{
|
||||||
|
Addr: cfg.Proxy,
|
||||||
|
Username: cfg.ProxyUser,
|
||||||
|
Password: cfg.ProxyPass,
|
||||||
|
}
|
||||||
dial = proxy.Dial
|
dial = proxy.Dial
|
||||||
faddr = fmt.Sprintf("%s via proxy %s", addr, cfg.Proxy)
|
faddr = fmt.Sprintf("%s via proxy %s", addr, cfg.Proxy)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue