Как автоматом настроить клиентов, файл настройки выглядит примерно вот так:
function FindProxyForURL(url, host)
{
if(isPlainHostName(host) == true ||
dnsDomainIs(host, ".xxx.ru") == true ||
dnsDomainIs(host, ".yyy.ru") == true ||
isInNet(host, "10.0.0.1", "255.255.255.0") == true)
return "DIRECT";
if(isPlainHostName(host) == true ||
dnsDomainIs(host, "zzz.ru") == true ||
isInNet(host, "xxx.xxx.xxx.xxx", "255.255.255.255") == true)
return "PROXY 127.0.0.1:xxx";
if(isPlainHostName(host) == true ||
dnsDomainIs(host, "aaa.ru") == true ||
isInNet(host, "xxx.xxx.xxx.xxx", "255.255.255.255") == true)
return "DIRECT";
if(url.substring(0, 4) == "ftp:")
return "PROXY 10.0.0.1:xxx";
return "PROXY 10.10.0.1:xxx";
}
Вопрос в следующем: где взять доки по синтаксису и написанию этого файла?
function FindProxyForURL(url, host)
{
if(isPlainHostName(host) == true ||
dnsDomainIs(host, ".xxx.ru") == true ||
dnsDomainIs(host, ".yyy.ru") == true ||
isInNet(host, "10.0.0.1", "255.255.255.0") == true)
return "DIRECT";
if(isPlainHostName(host) == true ||
dnsDomainIs(host, "zzz.ru") == true ||
isInNet(host, "xxx.xxx.xxx.xxx", "255.255.255.255") == true)
return "PROXY 127.0.0.1:xxx";
if(isPlainHostName(host) == true ||
dnsDomainIs(host, "aaa.ru") == true ||
isInNet(host, "xxx.xxx.xxx.xxx", "255.255.255.255") == true)
return "DIRECT";
if(url.substring(0, 4) == "ftp:")
return "PROXY 10.0.0.1:xxx";
return "PROXY 10.10.0.1:xxx";
}
Вопрос в следующем: где взять доки по синтаксису и написанию этого файла?