diff --git a/src/opnsense/service/templates/OPNsense/Proxy/squid.conf b/src/opnsense/service/templates/OPNsense/Proxy/squid.conf index c706d53ae..e47c906df 100644 --- a/src/opnsense/service/templates/OPNsense/Proxy/squid.conf +++ b/src/opnsense/service/templates/OPNsense/Proxy/squid.conf @@ -144,12 +144,10 @@ acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines # ACL - Allow localhost for PURGE cache if enabled -{% if helpers.exists('OPNsense.proxy.general.cache.local') %} -{% if OPNsense.proxy.general.cache.local.enabled == '1' %} +{% if helpers.exists('OPNsense.proxy.general.cache.local') and OPNsense.proxy.general.cache.local.enabled == '1' %} acl PURGE method PURGE http_access allow localhost PURGE http_access deny PURGE -{% endif %} {% endif %} # ACL lists