At 11:37 15.03.00 -0500, Carpenter, Dean wrote:
>Is
>there any way to pull the local/client ip address in the FindProxyForURL
>function in the .pac file ?
Sure. Try myIpAddress().
> With that it would just return "DIRECT" for all
>urls being requested from those particular subnets.
I am doing something like that (or, if you want, the precise opposite)
in my proxy.pac file:
// If the client is not on one of the local networks (such as a roaming
// client), do not use the proxy server.
// local networks are mostly in 192.168.* but also some historical ones
if (!isInNet(myIpAddress(), "192.168.0.0", "255.255.0.0") &&
!isInNet(myIpAddress(), "200.1.1.0", "255.255.255.0") &&
!isInNet(myIpAddress(), "200.1.2.0", "255.255.255.0") &&
!isInNet(myIpAddress(), "2.14.2.0", "255.255.255.0"))
return "DIRECT";
-- Tilman Schmidt E-Mail: Tilman.Schmidt@sema.de (office) Sema Group Koeln, Germany tilman@schmidt.bn.uunet.de (private)Received on Thu Mar 16 2000 - 02:41:07 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:16 MST