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

This commit is contained in:
心隨緣動 2025-09-05 23:31:49 +08:00 committed by GitHub
parent 11f87df9c2
commit 9b36040b11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,6 +158,16 @@ func (s *XrayService) GetXrayConfig() (*xray.Config, error) {
}
xrayConfig.Policy = json_util.RawMessage(policyJSON)
// =================================================================
// 中文注释: 在这里增加日志,打印最终生成的限速策略
// =================================================================
if len(uniqueSpeeds) > 0 {
finalPolicyLog, _ := json.Marshal(policyLevels)
logger.Infof("已为Xray动态生成限速策略: %s", string(finalPolicyLog))
}
// =================================================================
// =================================================================
// 中文注释: 动态限速核心逻辑 - 第三步: 为设置了限速的用户分配对应的 Level
// =================================================================