Re: [squid-users] proxy.pac-Bug in IE?

From: Duane Wessels <[email protected]>
Date: Fri, 2 Jan 2004 22:45:29 -0700 (MST)

On Thu, 1 Jan 2004, Florian Effenberger wrote:

> Hi there,
>
> I have the following proxy.pac file:
>
> ===
> function FindProxyForURL(url, host)
> {
> if (isPlainHostName(host) ||
> dnsDomainIs(host, ".effenberger"))
> return "DIRECT";
> else
> return "PROXY nibbler.effenberger:3128";
> }
> ===
>
> What I want to achieve is that
>
> 1.) plain hostnames are accessed directly
> 2.) hostnames ending in .effenberger (my local domain) are
> accessed directly
> 3.) all other connections should be accessed via my proxy
>
> It works fine in Mozilla, Opera and Konqueror, but not in Internet Explorer.
> If I open up any domain with ".effenberger.", it does not work. Example:
> www.effenberger.de, www.effenberger.com, etc.
>
> Is this a bug in IE?

My guess is that dnsDomainIs() matches from the end of the hostname only.

Instead, you might try:

      shExpMatch(host, "*.effenberger.*")

Duane W.
Received on Fri Jan 02 2004 - 22:45:31 MST

This archive was generated by hypermail pre-2.1.9 : Sun Feb 01 2004 - 12:00:03 MST