aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard/squidguard.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/squidGuard/squidguard.inc')
-rw-r--r--config/squidGuard/squidguard.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/squidGuard/squidguard.inc b/config/squidGuard/squidguard.inc
index 303f53b0..f5df409a 100644
--- a/config/squidGuard/squidguard.inc
+++ b/config/squidGuard/squidguard.inc
@@ -1074,21 +1074,20 @@ function convert_pfxml_to_sgxml() {
# other
$sgxml['view_gui_log'] = $pfxml['view_gui_log'];
+ $lanip = $config['interfaces']['lan']['ipaddr'];
+ $sgxml[F_CURRENT_LAN_IP] = $lanip;
# transparent
$squidxml = $config['installedpackages']['squid']['config'][0];
- if(isset($squidxml['transparent_proxy'])) {
- $lanip = $config['interfaces']['lan']['ipaddr'];
+ if($squidxml['transparent_proxy'] == 'on') {
$guiport = $config['system']['webgui']['port'];
$guiprotocol = $config['system']['webgui']['protocol'];
$sgxml[F_SQUID_TRANSPARENT_MODE] = 'on';
- $sgxml[F_CURRENT_LAN_IP] = $lanip;
$sgxml[F_CURRENT_GUI_PORT] = $guiport;
$sgxml[F_CURRENT_GUI_PROTO] = $guiprotocol;
} else {
unset($sgxml[F_SQUID_TRANSPARENT_MODE]);
- unset($sgxml[F_CURRENT_LAN_IP]);
unset($sgxml[F_CURRENT_GUI_PORT]);
unset($sgxml[F_CURRENT_GUI_PROTO]);
}