if ($http) { splice(@https, &indexof($http, @https), 1, $newhttp); }
else { push(@https, $newhttp); }
}
-&save_directive($conf, "http_access", \@https);
+&save_directive($conf, "http_access", \@https, "acl");
&flush_file_lines();
&unlock_file($config{'squid_conf'});
&webmin_log($in{'delete'} ? 'delete' : $http ? 'modify' : 'create', "http");
if ($icp) { splice(@icps, &indexof($icp, @icps), 1, $newicp); }
else { push(@icps, $newicp); }
}
-&save_directive($conf, "icp_access", \@icps);
+&save_directive($conf, "icp_access", \@icps, "acl");
&flush_file_lines();
&unlock_file($config{'squid_conf'});
&webmin_log($in{'delete'} ? 'delete' : $icp ? 'modify' : 'create', "icp");