diff options
| author | Jeff Garzik <[email protected]> | 2012-05-12 18:59:31 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-12 18:59:31 -0700 |
| commit | 80af836ce0e17c3278f1e770b2f145e324897f58 (patch) | |
| tree | f218d00f7d853a1fc669433f3c97767ab29f4b01 /src/netbase.cpp | |
| parent | Merge pull request #1272 from sipa/ipv6fixes (diff) | |
| parent | use "IPv6" and "IPv4" in strings as these are the official spellings and make... (diff) | |
| download | discoin-80af836ce0e17c3278f1e770b2f145e324897f58.tar.xz discoin-80af836ce0e17c3278f1e770b2f145e324897f58.zip | |
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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index f09d981c4..2131bdf75 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; |