Re: Automatic Proxy Config scripts

From: Oskar Pearson <oskar@dont-contact.us>
Date: Wed, 7 May 1997 17:32:16 +0200 (GMT)

Penisoara Adrian wrote:

> If I'm not mistaking, your situation is like this:
> -someone tries an URL like 'http://warez.foo.net'
> -the host 'warez.foo.net' is registered in DNS with '127.0.0.1' (tech.
> speaking, an 'warez IN A 127.0.0.1' record in the 'foo.net' SOA zone).
>
> Well, if this is your situation, the script will *not* work. The URL would
> be treated as any ordinary exterior address, it will be fetched through
> the proxy; one workaround it would be to use the isInNet() function who
> actually does an DNS lookup:
> -------
> if(isInNet(host,"127.0.0.1","255.255.0.0"))
> return "DIRECT".
> -------
>
> If I am wrong please do correct me !

No, you are right :)

        Oskar

=============================================
'experience made art, but inexperience luck.'
=============================================
Received on Wed May 07 1997 - 08:33:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:08 MST