@@ -415,34 +415,42 @@ bool AppInit2(boost::thread_group& threadGroup)
415
415
if (mapArgs.count (" -bind" )) {
416
416
// when specifying an explicit binding address, you want to listen on it
417
417
// even when -connect or -proxy is specified
418
- SoftSetBoolArg (" -listen" , true );
418
+ if (SoftSetBoolArg (" -listen" , true ))
419
+ LogPrintf (" AppInit2 : parameter interaction: -bind set -> setting -listen=1\n " );
419
420
}
420
421
421
422
if (mapArgs.count (" -connect" ) && mapMultiArgs[" -connect" ].size () > 0 ) {
422
423
// when only connecting to trusted nodes, do not seed via DNS, or listen by default
423
- SoftSetBoolArg (" -dnsseed" , false );
424
- SoftSetBoolArg (" -listen" , false );
424
+ if (SoftSetBoolArg (" -dnsseed" , false ))
425
+ LogPrintf (" AppInit2 : parameter interaction: -connect set -> setting -dnsseed=0\n " );
426
+ if (SoftSetBoolArg (" -listen" , false ))
427
+ LogPrintf (" AppInit2 : parameter interaction: -connect set -> setting -listen=0\n " );
425
428
}
426
429
427
430
if (mapArgs.count (" -proxy" )) {
428
- // to protect privacy, do not listen by default if a proxy server is specified
429
- SoftSetBoolArg (" -listen" , false );
431
+ // to protect privacy, do not listen by default if a default proxy server is specified
432
+ if (SoftSetBoolArg (" -listen" , false ))
433
+ LogPrintf (" AppInit2 : parameter interaction: -proxy set -> setting -listen=0\n " );
430
434
}
431
435
432
436
if (!GetBoolArg (" -listen" , true )) {
433
437
// do not map ports or try to retrieve public IP when not listening (pointless)
434
- SoftSetBoolArg (" -upnp" , false );
435
- SoftSetBoolArg (" -discover" , false );
438
+ if (SoftSetBoolArg (" -upnp" , false ))
439
+ LogPrintf (" AppInit2 : parameter interaction: -listen=0 -> setting -upnp=0\n " );
440
+ if (SoftSetBoolArg (" -discover" , false ))
441
+ LogPrintf (" AppInit2 : parameter interaction: -listen=0 -> setting -discover=0\n " );
436
442
}
437
443
438
444
if (mapArgs.count (" -externalip" )) {
439
445
// if an explicit public IP is specified, do not try to find others
440
- SoftSetBoolArg (" -discover" , false );
446
+ if (SoftSetBoolArg (" -discover" , false ))
447
+ LogPrintf (" AppInit2 : parameter interaction: -externalip set -> setting -discover=0\n " );
441
448
}
442
449
443
450
if (GetBoolArg (" -salvagewallet" , false )) {
444
451
// Rewrite just private keys: rescan to find transactions
445
- SoftSetBoolArg (" -rescan" , true );
452
+ if (SoftSetBoolArg (" -rescan" , true ))
453
+ LogPrintf (" AppInit2 : parameter interaction: -salvagewallet=1 -> setting -rescan=1\n " );
446
454
}
447
455
448
456
// Make sure enough file descriptors are available
0 commit comments