summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-03 18:51:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-03 18:51:31 +0900
commit9bb914b76e61dfed6044afee529eb92344bbca7a (patch)
tree016f9b4f6cdd1449398d05d6ce469b07463fa28c /src/AbstractCommand.cc
parent6ef91d60b34a2a93b397b6db4daabfe8017d31fb (diff)
Changed parse*Int functions so that it accepts iterators.
Diffstat (limited to 'src/AbstractCommand.cc')
-rw-r--r--src/AbstractCommand.cc2
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)) {