diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 01:06:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 01:06:52 +0900 |
| commit | 2f4393d17c7120912ad7b2b820b46124010a5a5e (patch) | |
| tree | 78c0e632175fc4c9b61d08c62b46a905cb4c853d /src/AbstractCommand.cc | |
| parent | 226480ad605cb9f7c4b5dbb0167f3fd67c8672ce (diff) | |
Rewritten parse*Int
Diffstat (limited to 'src/AbstractCommand.cc')
| -rw-r--r-- | src/AbstractCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc index 9dd0ac39..d658d657 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -611,7 +611,7 @@ bool inNoProxy(const SharedHandle<Request>& req, // evaluates against all of them std::string ip((*i).first, slashpos); uint32_t bits; - if(!util::parseUIntNoThrow(bits, slashpos+1, (*i).second)) { + if(!util::parseUIntNoThrow(bits, std::string(slashpos+1, (*i).second))) { continue; } if(util::inSameCidrBlock(ip, req->getHost(), bits)) { |
