mirror of https://github.com/aria2/aria2
2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Do exact match if IP address is specified in --no-proxy. * src/AbstractCommand.ccpull/1/head
parent
ef4e564b70
commit
f2c97658c1
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue