File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1377,6 +1377,8 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1377
1377
" -cjdnsreachable is not provided" ));
1378
1378
}
1379
1379
g_reachable_nets.Remove (NET_CJDNS);
1380
+ } else {
1381
+ g_v2_only = false ;
1380
1382
}
1381
1383
// Now g_reachable_nets.Contains(NET_CJDNS) is true if:
1382
1384
// 1. -cjdnsreachable is given and
@@ -1452,6 +1454,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1452
1454
1453
1455
if (onion_proxy.IsValid ()) {
1454
1456
SetProxy (NET_ONION, onion_proxy);
1457
+ g_v2_only = false ;
1455
1458
} else {
1456
1459
// If -listenonion is set, then we will (try to) connect to the Tor control port
1457
1460
// later from the torcontrol thread and may retrieve the onion proxy from there.
@@ -1948,6 +1951,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1948
1951
return InitError (strprintf (_ (" Invalid -i2psam address or hostname: '%s'" ), i2psam_arg));
1949
1952
}
1950
1953
SetProxy (NET_I2P, Proxy{addr.value ()});
1954
+ g_v2_only = false ;
1951
1955
} else {
1952
1956
if (args.IsArgSet (" -onlynet" ) && g_reachable_nets.Contains (NET_I2P)) {
1953
1957
return InitError (
You can’t perform that action at this time.
0 commit comments