).Log(cl.logger)
torrent.Add("error receiving handshake", 1)
cl.lock()
- cl.onBadAccept(c.remoteAddr)
+ cl.onBadAccept(c.RemoteAddr)
cl.unlock()
return
}
torrent.Add("received handshake for unloaded torrent", 1)
log.Fmsg("received handshake for unloaded torrent").SetLevel(log.Debug).Log(cl.logger)
cl.lock()
- cl.onBadAccept(c.remoteAddr)
+ cl.onBadAccept(c.RemoteAddr)
cl.unlock()
return
}
},
V: cl.config.ExtendedHandshakeClientVersion,
Reqq: 64, // TODO: Really?
- YourIp: pp.CompactIp(addrIpOrNil(conn.remoteAddr)),
+ YourIp: pp.CompactIp(addrIpOrNil(conn.RemoteAddr)),
Encryption: cl.config.HeaderObfuscationPolicy.Preferred || !cl.config.HeaderObfuscationPolicy.RequirePreferred,
Port: cl.incomingPeerPort(),
MetadataSize: torrent.metadataSize(),
peerChoking: true,
PeerMaxRequests: 250,
- remoteAddr: remoteAddr,
+ RemoteAddr: remoteAddr,
network: network,
connString: connString,
},