aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid.xml')
-rw-r--r--packages/squid.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/squid.xml b/packages/squid.xml
index 313bfef7..28271c13 100644
--- a/packages/squid.xml
+++ b/packages/squid.xml
@@ -19,7 +19,7 @@
<type>input</type>
</field>
</fields>
- <custom_add_php_command>
+ <custom_php_global_functions>
function write_squid_static_config() {
global $config;
$lancfg = $config['interfaces']['lan'];
@@ -40,7 +40,7 @@
fwrite($fout, "acl CONNECT method CONNECT\n");
fwrite($fout, "http_access allow localnet\n");
fwrite($fout, "http_access allow localhost\n");
- fwrite($fout, "http_access deny !Safe_ports\n");
+ fwrite($fout, "http_access deny !Safe_ports\n");
fwrite($fout, "http_access deny CONNECT\n");
fwrite($fout, "http_access deny all\n");
fwrite($fout, "visible_hostname pfSense\n");
@@ -52,6 +52,8 @@
fwrite($fout, "cache_effective_group squid\n");
fclose($fout);
}
+ </custom_php_global_functions>
+ <custom_add_php_command>
function sync_package_squid() {
conf_mount_rw();
config_lock();