This commit is contained in:
Olia Lisa
2026-04-20 22:57:35 +08:00
parent 9819aaba95
commit 96a0c4ed99
3 changed files with 31 additions and 8 deletions
+5 -5
View File
@@ -37,10 +37,10 @@ install(){
}
get_listen_port(){
local port=$(jq -r ".inbounds[0].listen_port" ./config/config.json)
echo $port
}
# get_listen_port(){
# local port=$(jq -r ".inbounds[0].listen_port" ./config/config.json)
# echo $port
# }
main(){
@@ -88,7 +88,7 @@ main(){
5)
# 修改端口
check_config_file
update_port
ask_update_port
port_manage allow $(get_listen_port) # 开放端口
restart_docker
;;