build fix for when DHT is disabled
This commit is contained in:
@@ -1381,6 +1381,7 @@ int main(int argc, char* argv[])
|
|||||||
, sess_stat.optimistic_unchoke_counter, sess_stat.unchoke_counter);
|
, sess_stat.optimistic_unchoke_counter, sess_stat.unchoke_counter);
|
||||||
out += str;
|
out += str;
|
||||||
|
|
||||||
|
#ifndef TORRENT_DISABLE_DHT
|
||||||
if (show_dht_status)
|
if (show_dht_status)
|
||||||
{
|
{
|
||||||
snprintf(str, sizeof(str), "DHT nodes: %d DHT cached nodes: %d total DHT size: %"PRId64"\n"
|
snprintf(str, sizeof(str), "DHT nodes: %d DHT cached nodes: %d total DHT size: %"PRId64"\n"
|
||||||
@@ -1395,6 +1396,7 @@ int main(int argc, char* argv[])
|
|||||||
out += str;
|
out += str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (active_handle.is_valid())
|
if (active_handle.is_valid())
|
||||||
{
|
{
|
||||||
|
@@ -1439,6 +1439,7 @@ namespace aux {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef TORRENT_DISABLE_DHT
|
||||||
if (m_dht)
|
if (m_dht)
|
||||||
{
|
{
|
||||||
int dht_down;
|
int dht_down;
|
||||||
@@ -1447,6 +1448,7 @@ namespace aux {
|
|||||||
m_stat.sent_dht_bytes(dht_up);
|
m_stat.sent_dht_bytes(dht_up);
|
||||||
m_stat.received_dht_bytes(dht_down);
|
m_stat.received_dht_bytes(dht_down);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (m_settings.rate_limit_ip_overhead)
|
if (m_settings.rate_limit_ip_overhead)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user