update
This commit is contained in:
+5
-5
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user