mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 493483 - "No proxy for" setting doesn't support IPv6 address literals. r=jduell, sr=bz
This commit is contained in:
parent
21adf55d50
commit
96635a0c33
@ -1064,15 +1064,13 @@ nsProtocolProxyService::LoadHostFilters(const char *filters)
|
||||
const char *portLocation = 0;
|
||||
const char *maskLocation = 0;
|
||||
|
||||
//
|
||||
// XXX this needs to be fixed to support IPv6 address literals,
|
||||
// which in this context will need to be []-escaped.
|
||||
//
|
||||
while (*endhost && (*endhost != ',' && !IS_ASCII_SPACE(*endhost))) {
|
||||
if (*endhost == ':')
|
||||
portLocation = endhost;
|
||||
else if (*endhost == '/')
|
||||
maskLocation = endhost;
|
||||
else if (*endhost == ']') // IPv6 address literals
|
||||
portLocation = 0;
|
||||
endhost++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user