增加开放端口步骤

This commit is contained in:
Olia Lisa
2026-01-23 17:55:18 +08:00
parent 811c351e8a
commit 83d0c83c8a
2 changed files with 94 additions and 2 deletions
+11 -2
View File
@@ -37,6 +37,12 @@ install(){
}
get_listen_port(){
local port=$(jq ./config/config.json ".inbounds[0].listen_port")
echo $port
}
main(){
# 显示菜单
echo "请选择一个操作:"
@@ -59,17 +65,19 @@ main(){
# 一键部署
install
create_config
run
prot_manage allow $(get_listen_port)
run
print_share_link
;;
2)
# 生成配置 / 重置配置
create_config
prot_manage allow $(get_listen_port)
;;
3)
# 查看分享链接
check_config_file
print_share_link
print_share_link
;;
4)
# 修改域名
@@ -81,6 +89,7 @@ main(){
# 修改端口
check_config_file
update_port
prot_manage allow $(get_listen_port)
restart_docker
;;
6)