pacparser: extent use of standard domains in tests
This commit is contained in:
parent
23d371ddb6
commit
1f66f6efb2
1 changed files with 6 additions and 6 deletions
|
@ -28,9 +28,9 @@ class Pacparser < Formula
|
|||
function FindProxyForURL(url, host) {
|
||||
|
||||
if ((isPlainHostName(host) ||
|
||||
dnsDomainIs(host, ".manugarg.com")) &&
|
||||
!localHostOrDomainIs(host, "www.manugarg.com"))
|
||||
return "plainhost/.manugarg.com";
|
||||
dnsDomainIs(host, ".example.edu")) &&
|
||||
!localHostOrDomainIs(host, "www.example.edu"))
|
||||
return "plainhost/.example.edu";
|
||||
|
||||
// Return externaldomain if host matches .*\.externaldomain\.example
|
||||
if (/.*\.externaldomain\.example/.test(host))
|
||||
|
@ -72,11 +72,11 @@ class Pacparser < Formula
|
|||
},
|
||||
{
|
||||
"cmd" => "-u http://host1",
|
||||
"res" => "plainhost/.manugarg.com",
|
||||
"res" => "plainhost/.example.edu",
|
||||
},
|
||||
{
|
||||
"cmd" => "-u http://www1.manugarg.com",
|
||||
"res" => "plainhost/.manugarg.com",
|
||||
"cmd" => "-u http://www1.example.edu",
|
||||
"res" => "plainhost/.example.edu",
|
||||
},
|
||||
{
|
||||
"cmd" => "-u http://manugarg.externaldomain.example",
|
||||
|
|
Loading…
Reference in a new issue