Log zero ports from trackers

This commit is contained in:
Matt Joiner 2015-08-06 08:58:13 +10:00
parent cb00308157
commit 6c8c870b28
1 changed files with 6 additions and 0 deletions

View File

@ -2360,6 +2360,12 @@ func (cl *Client) announceTorrentSingleTracker(tr tracker.Client, req *tracker.A
}
var peers []Peer
for _, peer := range resp.Peers {
if peer.Port == 0 {
if CryHeard() {
log.Printf("tracker %s gave peer %s", tr, peer)
}
continue
}
peers = append(peers, Peer{
IP: peer.IP,
Port: peer.Port,