Search squid archive

Re: Re: proxy.pac 'and' statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tor 2006-12-14 klockan 08:52 -0500 skrev John Halfpenny:
> Well spotted. Ok, I put the quotes back in (!) but it still won't work. What I want to do is IF this AND this THEN that
> 
> But i can't find anything which notes how to do it!
> 
> We now have- 
> 
> if (shExpMatch(url, "https://*.xyz.com";)) && (myIpAddress() == "10.1.4.4"){
>    return "DIRECT";
>  }
> 
> Anyone have any experience in this?

The above shExpMatch only matches https://[anything].xyz.com, not
https://www.xyz.com/image.gif etc..

Try

if (shExpMatch(host, "*.xyz.com) && myIpAddress() == "10.1.4.4") {
...

Regards
Henrik

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux