From ea933b03b4d75a19a8d30a90796861721445a6b6 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Sun, 13 May 2012 00:40:30 +0200 Subject: use "IPv6" and "IPv4" in strings as these are the official spellings and make ParseNetwork() in netbase.cpp case-insensitive --- src/netbase.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/netbase.cpp') diff --git a/src/netbase.cpp b/src/netbase.cpp index ebf823e899..0ba8edfc4e 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -11,6 +11,7 @@ #endif #include "strlcpy.h" +#include // 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; -- cgit v1.2.3