Make go vet happy.

This commit is contained in:
Dave Collins 2013-09-18 00:27:47 -05:00
parent 465327c62d
commit 3ca1e82f66
2 changed files with 5 additions and 2 deletions

View file

@ -557,7 +557,6 @@ func (a *AddrManager) GetAddress(class string, newBias int) *knownAddress {
factor *= 1.2
}
}
return nil
}
func (a *AddrManager) find(addr *btcwire.NetAddress) *knownAddress {

View file

@ -1162,7 +1162,11 @@ func newOutboundPeer(s *server, addr string, persistent bool) *peer {
dial := net.Dial
faddr := addr
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
faddr = fmt.Sprintf("%s via proxy %s", addr, cfg.Proxy)
}