From 34cf4eb3d6be99ca1af2b552322d29cac7591ed2 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Tue, 19 Jan 2021 21:49:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91=E9=98=B2=E7=81=AB=E5=A2=9953=20udp/tcp=20=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=20=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoBuild_DiyScript.sh | 1 + Scripts/AutoBuild_Function.sh | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Scripts/AutoBuild_DiyScript.sh b/Scripts/AutoBuild_DiyScript.sh index 83f6fc5..c6c93b1 100644 --- a/Scripts/AutoBuild_DiyScript.sh +++ b/Scripts/AutoBuild_DiyScript.sh @@ -13,6 +13,7 @@ Diy_Core() { INCLUDE_Passwall=false INCLUDE_Latest_Xray=true INCLUDE_mt7621_OC1000MHz=false + INCLUDE_Enable_FirewallPort_53=false } Diy-Part1() { diff --git a/Scripts/AutoBuild_Function.sh b/Scripts/AutoBuild_Function.sh index d2e25f1..4b02bdb 100644 --- a/Scripts/AutoBuild_Function.sh +++ b/Scripts/AutoBuild_Function.sh @@ -6,7 +6,7 @@ GET_TARGET_INFO() { [ -f ${GITHUB_WORKSPACE}/Openwrt.info ] && . ${GITHUB_WORKSPACE}/Openwrt.info Default_File="package/lean/default-settings/files/zzz-default-settings" - [ -f ${Default_File} ] && Lede_Version="$(egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" $Default_File)" + [ -f ${Default_File} ] && Lede_Version="$(egrep -o "R[0-9]+\.[0-9]+\.[0-9]+" ${Default_File})" [[ -z ${Lede_Version} ]] && Lede_Version="Openwrt" Openwrt_Version="${Lede_Version}-${Compile_Date}" TARGET_PROFILE="$(egrep -o "CONFIG_TARGET.*DEVICE.*=y" .config | sed -r 's/.*DEVICE_(.*)=y/\1/')" @@ -42,6 +42,9 @@ Diy_Part1_Base() { Diy_Part2_Base() { Diy_Core GET_TARGET_INFO + if [[ "${INCLUDE_Enable_FirewallPort_53}" == "true" ]];then + sed -i "s?iptables?#iptables?g" ${Default_File} > /dev/null 2>&1 + fi if [[ "${INCLUDE_AutoUpdate}" == "true" ]];then ExtraPackages git lean luci-app-autoupdate https://github.com/Hyy2001X main sed -i '/luci-app-autoupdate/d' .config > /dev/null 2>&1