diff --git a/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.forwarder.service.d/51koozali.conf/20service b/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.forwarder.service.d/51koozali.conf/20service index fe9a6e3..6317334 100644 --- a/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.forwarder.service.d/51koozali.conf/20service +++ b/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.forwarder.service.d/51koozali.conf/20service @@ -4,7 +4,7 @@ my $c = $dnscache{'CacheSize'} || 10000000; my $forwarder = (defined $dnscache{'Forwarder'} && $dnscache{'Forwarder'}) ? "FORWARDONLY=1" : ""; $OUT = "LimitDATA=$datalimit\n"; - $OUT .= 'Environment=\n"; + $OUT .= "Environment=\n"; $OUT .= 'Environment="DATALIMIT='.$datalimit.'" "IP=127.0.0.2" IPSEND=0.0.0.0 '.$forwarder.' CACHESIZE='.$c.' GID=410 UID=410 "ROOT=/var/service/dnscache.forwarder/root"'; } diff --git a/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service b/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service index db76597..3b31ab1 100644 --- a/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service +++ b/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service @@ -1,8 +1,7 @@ i[Service] { my $datalimit = $dnscache{'DataLimit'} || "3000000"; - my $localip = $config->get('LocalIP'); - my $ListenIP= $dnscache->prop('ListenIP') || $localip->value || "127.0.0.3"; + my $ListenIP= $dnscache{'ListenIP'} || $LocalIP || "127.0.0.3"; $OUT = "LimitDATA=$datalimit\n"; $OUT .= 'Environment="DATALIMIT='.$datalimit.'" "IP='.$ListenIP.'" IPSEND=0.0.0.0 GID=410 UID=410 "ROOT=/var/service/dnscache/root"'; }