net: use -proxy for connecting to the CJDNS network

If `-proxy` is given, then also use it for connecting to the CJDNS
network.
This commit is contained in:
Vasil Dimov
2021-09-21 12:26:51 +02:00
parent aedd02ef27
commit de01e312b3

View File

@@ -1315,6 +1315,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
SetProxy(NET_IPV4, addrProxy);
SetProxy(NET_IPV6, addrProxy);
SetProxy(NET_ONION, addrProxy);
SetProxy(NET_CJDNS, addrProxy);
SetNameProxy(addrProxy);
SetReachable(NET_ONION, true); // by default, -proxy sets onion as reachable, unless -noonion later
}