Removed redundant call of util::isNumericHost().

pull/2/head
Tatsuhiro Tsujikawa 2011-10-19 23:21:10 +09:00
parent 74e5aa0ace
commit 3837be82c8
1 changed files with 4 additions and 7 deletions

View File

@ -625,13 +625,10 @@ bool inNoProxy(const SharedHandle<Request>& req,
return true; return true;
} }
} else { } else {
if(!util::isNumericHost(req->getHost())) {
// TODO We don't resolve hostname here. More complete // TODO We don't resolve hostname here. More complete
// implementation is that we should first resolve // implementation is that we should first resolve
// hostname(which may result in several IP addresses) and // hostname(which may result in several IP addresses) and
// evaluates against all of them // evaluates against all of them
continue;
}
std::string ip = (*i).substr(0, slashpos); std::string ip = (*i).substr(0, slashpos);
uint32_t bits; uint32_t bits;
if(!util::parseUIntNoThrow(bits, (*i).substr(slashpos+1))) { if(!util::parseUIntNoThrow(bits, (*i).substr(slashpos+1))) {