2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Do exact match if IP address is specified in --no-proxy.
	* src/AbstractCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-03-22 12:27:11 +00:00
parent ef4e564b70
commit f2c97658c1
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Do exact match if IP address is specified in --no-proxy.
* src/AbstractCommand.cc
2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that socket is added to EventPoll object twice. This

View File

@ -464,7 +464,11 @@ static bool inNoProxy(const SharedHandle<Request>& req,
eoi = entries.end(); i != eoi; ++i) {
std::string::size_type slashpos = (*i).find('/');
if(slashpos == std::string::npos) {
if(domainMatch(*i)) {
if(util::isNumericHost(*i)) {
if(req->getHost() == *i) {
return true;
}
} else if(domainMatch(*i)) {
return true;
}
} else {