去除代理头支持, 增加节点面板通信加密 增加导出sql

This commit is contained in:
qaq
2025-07-11 16:24:12 +08:00
parent b690e68951
commit e313a1953c
21 changed files with 960 additions and 143 deletions
+3 -7
View File
@@ -144,19 +144,15 @@ install_gost() {
# 打印版本
echo "🔎 gost 版本:$($INSTALL_DIR/gost -V)"
# 写入 config.json
# 写入 config.json (安装时总是创建新的)
CONFIG_FILE="$INSTALL_DIR/config.json"
if [[ -f "$CONFIG_FILE" ]]; then
echo "⏭️ 跳过配置文件: config.json (已存在)"
else
echo "📄 创建新配置: config.json"
cat > "$CONFIG_FILE" <<EOF
echo "📄 创建新配置: config.json"
cat > "$CONFIG_FILE" <<EOF
{
"addr": "$SERVER_ADDR",
"secret": "$SECRET"
}
EOF
fi
# 写入 gost.json
GOST_CONFIG="$INSTALL_DIR/gost.json"