diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-09-22 17:06:31 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-11-03 14:41:14 +0100 |
commit | 78f456c57677e6a3a839426e211078ddf0b3e194 (patch) | |
tree | 2facad8c05428161f9e2c920c47165f533432b24 /src/netbase.cpp | |
parent | de01e312b333b65b09c8dc72f0cea6295ab8e43f (diff) |
net: recognize CJDNS from ParseNetwork()
This allows to use "cjdns" as an argument to the `getnodeaddresses` RPC
and to the `-onlynet=` parameter.
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r-- | src/netbase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index 64d17189a6..56f124579a 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -96,6 +96,9 @@ enum Network ParseNetwork(const std::string& net_in) { if (net == "i2p") { return NET_I2P; } + if (net == "cjdns") { + return NET_CJDNS; + } return NET_UNROUTABLE; } |