summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-10-19 23:21:10 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-10-19 23:21:10 +0900
commit3837be82c809b52efd9ef0a06c157688ad2b963a (patch)
treeb6562e7b645923cc03016b01b1cfc72bcb467198 /src
parent74e5aa0ace24e70a454f19fc0f032d0f30574000 (diff)
Removed redundant call of util::isNumericHost().
Diffstat (limited to 'src')
-rw-r--r--src/AbstractCommand.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc
index 0b181060..39baebc0 100644
--- a/src/AbstractCommand.cc
+++ b/src/AbstractCommand.cc
@@ -625,13 +625,10 @@ bool inNoProxy(const SharedHandle<Request>& req,
return true;
}
} else {
- if(!util::isNumericHost(req->getHost())) {
- // TODO We don't resolve hostname here. More complete
- // implementation is that we should first resolve
- // hostname(which may result in several IP addresses) and
- // evaluates against all of them
- continue;
- }
+ // TODO We don't resolve hostname here. More complete
+ // implementation is that we should first resolve
+ // hostname(which may result in several IP addresses) and
+ // evaluates against all of them
std::string ip = (*i).substr(0, slashpos);
uint32_t bits;
if(!util::parseUIntNoThrow(bits, (*i).substr(slashpos+1))) {