Skip to content

Commit a602e9f

Browse files
committed
disable v2-only blanket on tor/i2p/cjdns
1 parent 0f13242 commit a602e9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/init.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,8 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
13771377
"-cjdnsreachable is not provided"));
13781378
}
13791379
g_reachable_nets.Remove(NET_CJDNS);
1380+
} else {
1381+
g_v2_only = false;
13801382
}
13811383
// Now g_reachable_nets.Contains(NET_CJDNS) is true if:
13821384
// 1. -cjdnsreachable is given and
@@ -1452,6 +1454,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14521454

14531455
if (onion_proxy.IsValid()) {
14541456
SetProxy(NET_ONION, onion_proxy);
1457+
g_v2_only = false;
14551458
} else {
14561459
// If -listenonion is set, then we will (try to) connect to the Tor control port
14571460
// 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)
19481951
return InitError(strprintf(_("Invalid -i2psam address or hostname: '%s'"), i2psam_arg));
19491952
}
19501953
SetProxy(NET_I2P, Proxy{addr.value()});
1954+
g_v2_only = false;
19511955
} else {
19521956
if (args.IsArgSet("-onlynet") && g_reachable_nets.Contains(NET_I2P)) {
19531957
return InitError(

0 commit comments

Comments
 (0)