torrent.go | 2 +- diff --git a/torrent.go b/torrent.go index 8bd34dbcf99c4f122301221707936b8ff4b70368..4749c8a876ddc743ceb50d86dcfe67c2e91018bc 100644 --- a/torrent.go +++ b/torrent.go @@ -2204,7 +2204,7 @@ // The total number of peers in the torrent. func (t *Torrent) numTotalPeers() int { peers := make(map[string]struct{}) for conn := range t.conns { - ra := conn.conn.RemoteAddr() + ra := conn.RemoteAddr if ra == nil { // It's been closed and doesn't support RemoteAddr. continue