trunk build fix when GeoIP is enabled

This commit is contained in:
Arvid Norberg 2009-08-21 21:28:28 +00:00
parent f283065cfc
commit dac25997f9
1 changed files with 2 additions and 2 deletions

View File

@ -931,11 +931,11 @@ namespace libtorrent
}
#ifndef TORRENT_DISABLE_GEO_IP
int as = ses.as_for_ip(remote.address());
int as = m_torrent->session().as_for_ip(p->address());
#ifdef TORRENT_DEBUG
p->inet_as_num = as;
#endif
p->inet_as = ses.lookup_as(as);
p->inet_as = m_torrent->session().lookup_as(as);
#endif
if (is_connect_candidate(*p, m_finished))
++m_num_connect_candidates;