fix test_privacy when DHT is disabled

This commit is contained in:
Arvid Norberg 2013-09-01 00:11:59 +00:00
parent 9bb808b747
commit fcdd839e87
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@ enum flags_t
void test_proxy(proxy_settings::proxy_type proxy_type, int flags)
{
#ifdef TORRENT_DISABLE_DHT
// if DHT is disabled, we won't get any requests to it
flags &= ~expect_dht_msg;
#endif
fprintf(stderr, "\n=== TEST == proxy: %s anonymous-mode: %s\n\n", proxy_name[proxy_type], (flags & anonymous_mode) ? "yes" : "no");
int http_port = start_web_server();
int udp_port = start_tracker();