Fix EmailField type and add "if helpers.exists ..." to squid.conf

parent 3bcaaa9b
...@@ -69,12 +69,12 @@ ...@@ -69,12 +69,12 @@
<default>0</default> <default>0</default>
<Required>N</Required> <Required>N</Required>
</suppressVersion> </suppressVersion>
<VisibleEmail type="TextField"> <VisibleEmail type="EmailField">
<default>localhost</default> <default>admin@localhost</default>
<Required>N</Required> <Required>N</Required>
</VisibleEmail> </VisibleEmail>
<VisibleHostname type="TextField"> <VisibleHostname type="TextField">
<default>admin@localhost</default> <default>localhost</default>
<Required>N</Required> <Required>N</Required>
</VisibleHostname> </VisibleHostname>
<cache> <cache>
......
...@@ -523,7 +523,11 @@ delay_parameters 1 {{OPNsense.proxy.general.traffic.OverallBandwidthTrotteling|i ...@@ -523,7 +523,11 @@ delay_parameters 1 {{OPNsense.proxy.general.traffic.OverallBandwidthTrotteling|i
{% endif %} {% endif %}
# Disable squid logfile rotate to use system defaults # Disable squid logfile rotate to use system defaults
logfile_rotate 0 logfile_rotate 0
{% if helpers.exists('OPNsense.proxy.general.VisibleHostname') %}
# Define visible hostname # Define visible hostname
visible_hostname {{OPNsense.proxy.general.VisibleHostname}} visible_hostname {{OPNsense.proxy.general.VisibleHostname}}
{% endif %}
{% if helpers.exists('OPNsense.proxy.general.VisibleEmail') %}
# Define visible email # Define visible email
cache_mgr {{OPNsense.proxy.general.VisibleEmail}} cache_mgr {{OPNsense.proxy.general.VisibleEmail}}
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment