Added support for editing proxy reply restrictions, thanks to Steve Williams.
Re-design the Access Control page to use tabs, to better split up the lists of ACLs, HTTP and ICP restrictions.
Ensure that HTTP and ICP restrictions are created after ACLs in the config file.
+---- Changes since 1.390 ----
+The httpd_accel family of directives are no longer shown when using Squid versions 2.6 and above (as they have been deprecated).
print &opt_input($text{'emisc_fua'}, "fake_user_agent", $conf, $text{'none'}, 15);
print "</tr><tr>\n";
-if ($squid_version < 3.0) {
+if ($squid_version < 2.6) {
$host = &find_value("httpd_accel_host", $conf);
print "<td><b>$text{'emisc_hah'}</b></td> <td colspan=3>\n";
printf "<input type=radio name=accel value=0 %s> %s\n",
$text{'default'}, 40);
print "</tr>\n";
-print "<tr> <td colspan=4><hr></td> </tr>\n";
-
-print "</tr><tr>\n";
-print &opt_input($text{'emisc_hah'}, "httpd_accel_host", $conf,
- $text{'default'}, 50);
-print "</tr><tr>\n";
-print &opt_input($text{'emisc_hap'}, "httpd_accel_port", $conf,
- $text{'default'}, 10);
-print "</tr><tr>\n";
-print &choice_input($text{'emisc_hawp'}, "httpd_accel_with_proxy",
- $conf, "off", $text{'on'}, "on", $text{'off'}, "off");
-print &choice_input($text{'emisc_hauhh'}, "httpd_accel_uses_host_header",
- $conf, "off", $text{'yes'}, "on", $text{'no'}, "off");
-print "</tr><tr>\n";
-
print "</table></td></tr></table>\n";
print "<input type=submit value='$text{'buttsave'}'></form>\n";
'values' => [ 'virtual' ] } ]);
}
else {
- # In Squid 2.6, acceleration is a port option
+ # In Squid 2.6+, acceleration is a port option
@ports = &find_config("http_port", $conf);
foreach my $p (@ports) {
local $trans = 0;
}
&save_opt("fake_user_agent", undef, $conf);
&save_choice("memory_pools", "on", $conf);
-if ($squid_version < 3.0) {
+if ($squid_version < 2.6) {
if ($in{'accel'} == 0) {
&save_directive($conf, "httpd_accel_host", [ ]);
}
}
&save_opt("dns_testnames", undef, $conf);
-&save_opt("httpd_accel_host", undef, $conf);
-&save_opt("httpd_accel_port", undef, $conf);
-&save_choice("httpd_accel_with_proxy", undef, $conf);
-&save_choice("httpd_accel_uses_host_header", undef, $conf);
&flush_file_lines();
&unlock_file($config{'squid_conf'});