重构代码, 迁移导入依赖文件语句位置

This commit is contained in:
Olia Lisa
2026-01-14 23:11:26 +08:00
parent 1dffa963e2
commit 29365de75a
9 changed files with 15 additions and 17 deletions
+1 -1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
source "$(dirname "$0")/utils/jq_util.sh"
# 查找随机空闲端口
@@ -78,7 +79,6 @@ update_port(){
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
local config_dir="$script_dir/../config"
source "$script_dir/utils/jq_util.sh"
local port=$(find_free_port)
modify_json_file "$config_dir/config.json" ".inbounds[0].listen_port" "$port"