diff options
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)) { |
