geo ip fix in client_test

This commit is contained in:
Arvid Norberg 2008-04-22 17:17:01 +00:00
parent 3d59e6e7e9
commit 0550363b85
1 changed files with 5 additions and 1 deletions

View File

@ -993,7 +993,11 @@ int main(int ac, char* av[])
for (std::vector<peer_list_entry>::iterator k = peers.begin()
, end(peers.end()); k != end; ++k)
{
f << k->ip.address() << "\t" << ses.as_for_ip(k->ip.address()) << std::endl;
f << k->ip.address()
#ifndef TORRENT_DISABLE_GEO_IP
<< "\t" << ses.as_for_ip(k->ip.address())
#endif
<< std::endl;
}
}
}