aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-07-30 15:27:03 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-07-30 15:38:58 +0200
commit60dc8e4208058814494b301c355a5996af9517a9 (patch)
tree685b3bd681e74621ef154a52b2d70478a54df101 /src/netbase.cpp
parent1de2992e0786f4de0f0cae10eb27a3b69ec6e3de (diff)
Allow -onlynet=onion to be used
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better.
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index af6d11f0e2..f9f4755f7b 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -47,7 +47,7 @@ enum Network ParseNetwork(std::string net) {
boost::to_lower(net);
if (net == "ipv4") return NET_IPV4;
if (net == "ipv6") return NET_IPV6;
- if (net == "tor") return NET_TOR;
+ if (net == "tor" || net == "onion") return NET_TOR;
return NET_UNROUTABLE;
}