From d9696558fac30c16b076a460e5e98f55f4b0a2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= Date: Sat, 6 Sep 2025 18:30:27 +0800 Subject: [PATCH] v2.6.9 -------->>> Independent SpeedLimit --- web/service/xray.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/service/xray.go b/web/service/xray.go index 01327c9b..16bd5641 100644 --- a/web/service/xray.go +++ b/web/service/xray.go @@ -294,6 +294,15 @@ func (s *XrayService) RestartXray(isForce bool) error { return err } + // 【新功能】重启时,将完整配置打印到 Debug 日志以供验证 + configBytes, jsonErr := json.MarshalIndent(xrayConfig, "", " ") + if jsonErr == nil { + logger.Debugf("使用新配置重启 Xray:\n%s", string(configBytes)) + } else { + logger.Warning("无法将 Xray 配置编组以进行日志记录:", jsonErr) + } + + if s.IsXrayRunning() { if !isForce && p.GetConfig().Equals(xrayConfig) && !isNeedXrayRestart.Load() { logger.Debug("It does not need to restart Xray")