luci-app-passwall2: sync upstream

last commit: 2e9ff90d24
This commit is contained in:
gitea-action 2025-01-03 17:30:22 +08:00
parent e2d52df050
commit 7c5e9d70cd

View File

@ -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
}