From 9bb914b76e61dfed6044afee529eb92344bbca7a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 3 Nov 2011 18:51:31 +0900 Subject: Changed parse*Int functions so that it accepts iterators. --- src/AbstractCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AbstractCommand.cc') 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& 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)) { -- cgit