Re: Dear Firefox, the address of the loopback is not a useful information

2008-05-06 Thread Rafael Garcia-Suarez
2008/5/6 Bruce Richardson : > > Basically, I wanted to do something like this : > > > > if (isInNet(myIpAddress(), "10.0.0.0", "255.0.0.0")) { > >return "my office's proxy settings"; > > } > > return "DIRECT"; > > > > But the function myIpAddress() always returns "127.0.0.1". HOW USEFUL

Re: Dear Firefox, the address of the loopback is not a useful information

2008-05-06 Thread Bruce Richardson
On Tue, May 06, 2008 at 02:20:09PM +0200, Rafael Garcia-Suarez wrote: So I was writing a neat proxy.pac to put on my laptop so it could adjust what web proxy to use depending on my location. Basically, I wanted to do something like this : if (isInNet(myIpAddress(), "10.0.0.0", "255.0.0.0")) {

Dear Firefox, the address of the loopback is not a useful information

2008-05-06 Thread Rafael Garcia-Suarez
So I was writing a neat proxy.pac to put on my laptop so it could adjust what web proxy to use depending on my location. Basically, I wanted to do something like this : if (isInNet(myIpAddress(), "10.0.0.0", "255.0.0.0")) { return "my office's proxy settings"; } return "DIRECT"; But the funct