summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.cc
diff options
context:
space:
mode:
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 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)) {