Whether the PAC file supports loops?

55 Views Asked by At

I have PAC file

function FindProxyForURL(url, host)
{
 if (shExpMatch(host, "*site1*"))
  return 'socks5 xxx.xxx.xxx.xxx:xxxx';
 else if (shExpMatch(host, "*site2*"))
  return 'socks5 xxx.xxx.xxx.xxx:xxxx';
 else
  return "DIRECT"
}

how this do in loop f.e. foreach loop or for loop

0

There are 0 best solutions below