aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-09-21 12:26:51 +0200
committerVasil Dimov <vd@FreeBSD.org>2021-11-03 14:41:14 +0100
commitde01e312b333b65b09c8dc72f0cea6295ab8e43f (patch)
treed42da2beaf19983b52ace641f4a2762937578899
parentaedd02ef2750329019d5698b14b17d67c5a563ad (diff)
net: use -proxy for connecting to the CJDNS network
If `-proxy` is given, then also use it for connecting to the CJDNS network.
-rw-r--r--src/init.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index e554a18fbf..b5b647e7c1 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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
}