aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-12 18:59:31 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-05-12 18:59:31 -0700
commit80af836ce0e17c3278f1e770b2f145e324897f58 (patch)
treef218d00f7d853a1fc669433f3c97767ab29f4b01 /src/netbase.cpp
parent6f7d45a3239519bb3a18893dea0875e80edc8c42 (diff)
parentea933b03b4d75a19a8d30a90796861721445a6b6 (diff)
downloadbitcoin-80af836ce0e17c3278f1e770b2f145e324897f58.tar.xz
Merge pull request #1277 from Diapolo/IPv6_IPv4_strings
use "IPv6" and "IPv4" in strings as these are the official spellings
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index f09d981c49..2131bdf75b 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -11,6 +11,7 @@
#endif
#include "strlcpy.h"
+#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
using namespace std;
@@ -27,6 +28,7 @@ static bool vfNoProxy[NET_MAX] = {};
static const unsigned char pchIPv4[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff };
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;