Re: FTP Query

From: Jonathan Larmour <jlarmour@dont-contact.us>
Date: Thu, 04 Mar 1999 16:46:45 +0000

Henrik Nordstrom wrote:
>
> Richard Stagg wrote:
> >
> > > > look at the source and they're "http://dmz_proxy.eu.csc.com:3128/
> > > > squid-internal-static/icons/anthony-text.gif" or whatever.
>
> > Doh! Of course:
> > "s/dmz_proxy\.eu\.csc\.com/int_proxy\.eu\.csc\.com/;"
> > Works like a charm.
>
> Should not be needed or even help. Squid is designed to intercept all
> squid-internal-static objects regardless of the server name or port
> used.

What about this in client_side.c:2243 :

            if (!http->flags.internal) {
                if (internalCheck(strBuf(request->urlpath))) {
                    if (0 == strcasecmp(request->host, internalHostname()))
{
                        if (request->port == Config.Port.http->i)
                            http->flags.internal = 1;
                    } else if
(internalStaticCheck(strBuf(request->urlpath))) {
                        xstrncpy(request->host, internalHostname(),
SQUIDHOSTNAMELEN);
                        request->port = Config.Port.http->i;
                        http->flags.internal = 1;
                    }
                }
            }

And I don't think the earlier call to parseHttpRequest() would have set
http->flags.internal either since the URL wouldn't begin "/squid-internal-"
it would instead begin "http://dmz_...."

Jifl

-- 
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44 (1223) 728762
"Women marry hoping their husbands will change, men||Home e-mail: jifl @ 
marry hoping their wives never do. Both are rare." ||     jifvik.demon.co.uk
Help fight spam! http://spam.abuse.net/  These opinions are all my own fault
Received on Thu Mar 04 1999 - 09:45:32 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:08 MST