[mrtg] Off topic question

Luu, Huy huy.luu at ibtco.com
Wed Sep 26 17:14:10 MEST 2001


Hi all,

I have a java script used to automate NT to select one proxy server and if
it fails, select another proxy server.  I can't get this script to work
correctly.  I sniff the traffic and found that the NT station never
establish a connection to the proxy server.  Here is the syntax:

function FindProxyForURL(url,host)
{
  if (isInNet(host, "10.0.0.0", "255.0.0.0")) 
    return "PROXY 10.2.0.14:80;
            PROXY 155.0.20.130:80";
  else if (isInNet(host, "155.0.0.0", "255.255.0.0")) 
    return "PROXY 155.0.20.130:80;
            PROXY 10.2.0.14:80";
  else
    return "PROXY 155.0.20.130:80;
            PROXT 10.2.0.14:80";
}  
{ 
  if (host == "*.ibtco.com")
    return "DIRECT";
}
  
As you can already tell, I'm not at all familiar with javascipt.  I thankyou
all in advance for your help.

Huy Duc Luu
Investor's Bank & Trust
200 Clarendon Street
617-779-3045



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


-- Binary/unsupported file stripped by Listar --
-- Err : No filename to use for decode, file stripped.
-- Type: text/html


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list