1 |
vip-ire |
1.1 |
--- smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/squid/squid.conf/15HTTPPortChilli.transparent_squid 2010-07-20 15:19:12.000000000 +0200 |
2 |
|
|
+++ smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/squid/squid.conf/15HTTPPortChilli 2010-07-20 15:21:31.000000000 +0200 |
3 |
|
|
@@ -4,9 +4,15 @@ |
4 |
|
|
$net = NetAddr::IP->new($net) + 1; |
5 |
|
|
my $chillip = $net->addr; |
6 |
|
|
|
7 |
|
|
+my $transparent = ' transparent'; |
8 |
|
|
+my $squid = `rpm -q --qf %{VERSION} squid`; |
9 |
|
|
+ |
10 |
|
|
+$transparent = '' if ($squid =~ /^2\.5/); |
11 |
|
|
+ |
12 |
|
|
$OUT =''; |
13 |
|
|
if ($chilli{'status'} eq 'enabled'){ |
14 |
|
|
my $squidport = $squid{'TCPPort'} || '3128'; |
15 |
|
|
- $OUT = "http_port $chillip:$squidport\n"; |
16 |
|
|
+ $OUT = "http_port $chillip:$squidport$transparent\n"; |
17 |
|
|
} |
18 |
|
|
} |
19 |
|
|
+ |