A
A
Adaon2017-03-23 12:34:36
JavaScript
Adaon, 2017-03-23 12:34:36

What's wrong with the proxy autoconfig script?

wpad.dat:

function FindProxyForURL(url, host)
{

// if (shExpMatch(host, "10.0.*"))
//  return "DIRECT";

 if (shExpMatch(host, "*.example.org"))
  return "DIRECT";

  return "PROXY 10.0.6.1:8080";
}

It works in this form.
If you uncomment two lines, it stops working and starts everything directly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2017-03-23
@Zarom

For tests: home.thorsen.pm/proxyforurl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question