fix test_privacy when DHT is disabled
This commit is contained in:
parent
9bb808b747
commit
fcdd839e87
|
@ -77,6 +77,10 @@ enum flags_t
|
||||||
|
|
||||||
void test_proxy(proxy_settings::proxy_type proxy_type, int flags)
|
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");
|
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 http_port = start_web_server();
|
||||||
int udp_port = start_tracker();
|
int udp_port = start_tracker();
|
||||||
|
|
Loading…
Reference in New Issue