From 7c5e9d70cd305871ddc81934b7c313dfa0d1f24c Mon Sep 17 00:00:00 2001 From: gitea-action Date: Fri, 3 Jan 2025 17:30:22 +0800 Subject: [PATCH] luci-app-passwall2: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall2/commit/2e9ff90d24866a66afc231506b973a0237aeb8ad --- luci-app-passwall2/root/usr/share/passwall2/app.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/luci-app-passwall2/root/usr/share/passwall2/app.sh b/luci-app-passwall2/root/usr/share/passwall2/app.sh index e31fc1db0..ed19cdf02 100755 --- a/luci-app-passwall2/root/usr/share/passwall2/app.sh +++ b/luci-app-passwall2/root/usr/share/passwall2/app.sh @@ -209,11 +209,7 @@ check_depends() { get_new_port() { port=$1 - [ "$port" == "auto" ] && { - port=2082 - local GET_NEW_PORT=$(get_cache_var "get_new_port") - [ -n "${GET_NEW_PORT}" ] && port=${GET_NEW_PORT} - } + [ "$port" == "auto" ] && port=2082 protocol=$(echo $2 | tr 'A-Z' 'a-z') result=$(check_port_exists $port $protocol) if [ "$result" != 0 ]; then @@ -225,7 +221,6 @@ get_new_port() { fi get_new_port $temp $protocol else - set_cache_var "get_new_port" "$port" echo $port fi }