0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-04 13:55:23 -05:00

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
No known key found for this signature in database
GPG key ID: 54DF06F64B55CBBF

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
}