diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-19 23:36:23 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-19 23:36:23 +0000 |
commit | 5a519ada2dd25105b25e60d49b8f169dc35dc242 (patch) | |
tree | f69c6863ce48ce8568cee3addd71fdd4b7a69873 /packages/squid.xml | |
parent | bc688c6576ea67529de4bb7cabb91a2e258d7fc6 (diff) | |
download | pfsense-packages-5a519ada2dd25105b25e60d49b8f169dc35dc242.tar.gz pfsense-packages-5a519ada2dd25105b25e60d49b8f169dc35dc242.tar.bz2 pfsense-packages-5a519ada2dd25105b25e60d49b8f169dc35dc242.zip |
Modify squid package to use new global functions directive.
Diffstat (limited to 'packages/squid.xml')
-rw-r--r-- | packages/squid.xml | 6 |
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(); |