diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-03 18:51:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-03 18:51:31 +0900 |
| commit | 9bb914b76e61dfed6044afee529eb92344bbca7a (patch) | |
| tree | 016f9b4f6cdd1449398d05d6ce469b07463fa28c /src/AbstractCommand.cc | |
| parent | 6ef91d60b34a2a93b397b6db4daabfe8017d31fb (diff) | |
Changed parse*Int functions so that it accepts iterators.
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 e2636193..d31d610c 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -608,7 +608,7 @@ bool inNoProxy(const SharedHandle<Request>& req, // evaluates against all of them std::string ip = (*i).substr(0, slashpos); uint32_t bits; - if(!util::parseUIntNoThrow(bits, (*i).substr(slashpos+1))) { + if(!util::parseUIntNoThrow(bits, (*i).begin()+slashpos+1, (*i).end())) { continue; } if(util::inSameCidrBlock(ip, req->getHost(), bits)) { |
