From 79c20f0f6bafa1b8ca4df443430fd89787cd81fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E7=A8=AE?= <39034242+kenzok8@users.noreply.github.com> Date: Sun, 22 Oct 2023 14:41:38 +0800 Subject: [PATCH] Update master.sh --- .github/diy/master.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/diy/master.sh b/.github/diy/master.sh index 8d24b3a..00bfde6 100755 --- a/.github/diy/master.sh +++ b/.github/diy/master.sh @@ -73,5 +73,6 @@ sed -i 's/\(+luci-compat\)/\1 +luci-theme-argone/' luci-app-argone-config/Makefi #sed -i '65,73d' adguardhome/Makefile rm -rf ./*/.git ./*/.gitattributes ./*/.svn ./*/.github ./*/.gitignore create_acl_for_luci.err create_acl_for_luci.ok create_acl_for_luci.warn #rm -rf adguardhome/patches +sed -i '59s/.*/local port=luci.sys.exec("awk \x27\/^dns:\/ {found_dns=1} found_dns \x26\x26 \/\^ port:\/ {print $2; exit}\x27 "..configpath.." 2>nul")/' luci-app-adguardhome/luasrc/model/cbi/AdGuardHome/base.lua exit 0