Matthew Hannigan wrote:
> I'd avoid isInNet anyway in favour of shExpMatch because isInNet
> does dns lookups. And this function will be done for every http
> connection afaik. Could be slow!
>
> So I'd try something like
>
> function FindProxyForURL(url, host)
> {
> if (shExpMatch (myIpAddress(), "192.168.18.*"))
> return "DIRECT";
>
> if (shExpMatch (myIpAddress(), "192.168.12.*"))
> return "PROXY 192.168.12.101:3128" ;
>
> return "DIRECT";
> }
>
> hopefully myIpAddress() would be properly stringified;
Bummer, still no go.
I even istalled the Javascript console to see if there were
any errors or warnings coming up. None. I'm completely in the
dark here.
> I know barely enough javascript to be dangerous.
I've used about 7 languages that look a bit like Javascript
but never actually done any.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"And this is one of the central problems with Islam. It's a religion
with something for everyone. If you wake up one morning in a good
mood you can find all sorts of stuff that are peaceable, loving,
kind. On the other hand, if you wake up in a foul temper then there's
plenty of hateful stuff to help you vent your spleen. In reality,
if you believe the Koran is the word of god then you have to take
both on board. You can't pick and choose."
-- http://garymonro.blogsome.com/2005/08/11/
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html