v2.6.9 -------->>> Independent SpeedLimit

This commit is contained in:
心隨緣動 2025-09-06 18:30:27 +08:00 committed by GitHub
parent ff1c4f8e84
commit d9696558fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -294,6 +294,15 @@ func (s *XrayService) RestartXray(isForce bool) error {
return err 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 s.IsXrayRunning() {
if !isForce && p.GetConfig().Equals(xrayConfig) && !isNeedXrayRestart.Load() { if !isForce && p.GetConfig().Equals(xrayConfig) && !isNeedXrayRestart.Load() {
logger.Debug("It does not need to restart Xray") logger.Debug("It does not need to restart Xray")