luci-app-ssr-plus: cleanup dnsmasq temp file

This commit is contained in:
lean 2020-03-17 15:18:29 +08:00
parent 4f676ca0bf
commit b7d8f6f1fd
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ssr-plus
PKG_VERSION:=168
PKG_RELEASE:=8
PKG_VERSION:=169
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -619,6 +619,8 @@ start() {
if [ "$NETFLIX_SERVER" != "same" ]; then
awk '!/^$/&&!/^#/{printf("ipset=/.%s/'"netflix"'\n",$0)}' /etc/config/netflix.list > /tmp/dnsmasq.ssr/netflix_forward.conf
awk '!/^$/&&!/^#/{printf("server=/.%s/'"127.0.0.1#5555"'\n",$0)}' /etc/config/netflix.list >> /tmp/dnsmasq.ssr/netflix_forward.conf
else
rm -f /tmp/dnsmasq.ssr/netflix_forward.conf
fi
/etc/init.d/dnsmasq restart >/dev/null 2>&1