summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-15 20:29:33 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-15 20:29:33 +0100
commitd88140ecc5d72156ecce712f2d27cf413aaa2938 (patch)
tree7b9875458d32ae55dc19ad715720c3e00384ad90 /src
parentadded env var TTL COOLDOWN TOOMUCH (diff)
downloadtravnik-d88140ecc5d72156ecce712f2d27cf413aaa2938.tar
travnik-d88140ecc5d72156ecce712f2d27cf413aaa2938.tar.gz
travnik-d88140ecc5d72156ecce712f2d27cf413aaa2938.tar.bz2
travnik-d88140ecc5d72156ecce712f2d27cf413aaa2938.tar.lz
travnik-d88140ecc5d72156ecce712f2d27cf413aaa2938.tar.xz
travnik-d88140ecc5d72156ecce712f2d27cf413aaa2938.tar.zst
travnik-d88140ecc5d72156ecce712f2d27cf413aaa2938.zip
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0949e4b..f0f41a4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -144,7 +144,7 @@ int main (int argc, char ** argv) {
dht->pollfds = &pollfds;
dht->pollfds_size = &pollfds_size;
dht->nfds = &nfds;
- dht->verbosity |= (getenv("TRAVNIK_INCOMING_DHT") ? incoming_dht : 0) | (getenv("TRAVNIK_OUTGOING_DHT") ? outgoing_dht : 0) | expected | debug;
+ dht->verbosity |= (getenv("TRAVNIK_INCOMING_DHT") ? incoming_dht : 0) | (getenv("TRAVNIK_OUTGOING_DHT") ? outgoing_dht : 0) | expected | (getenv("TRAVNIK_DEBUG") ? debug : 0) | (getenv("TRAVNIK_EXŠECTED") ? expected : 0);
dht->torrents_max = K;
dht->peers_per_torrent_max = K;
struct torrent * torrent = torrent_init();