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.

Reply via email to