mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-27 10:41:33 +08:00
fix(security): 收紧路径与 Gateway 清理策略
This commit is contained in:
@@ -2441,11 +2441,13 @@ function calibrationRichnessScore(config) {
|
||||
return score
|
||||
}
|
||||
|
||||
function selectCalibrationSource(current, backup) {
|
||||
export function selectCalibrationSource(current, backup) {
|
||||
if (current && backup) {
|
||||
return calibrationRichnessScore(backup) > calibrationRichnessScore(current)
|
||||
? ['backup', backup]
|
||||
: ['current', current]
|
||||
const currentScore = calibrationRichnessScore(current)
|
||||
if (currentScore === 0 && calibrationRichnessScore(backup) > 0) {
|
||||
return ['backup', backup]
|
||||
}
|
||||
return ['current', current]
|
||||
}
|
||||
if (current) return ['current', current]
|
||||
if (backup) return ['backup', backup]
|
||||
|
||||
Reference in New Issue
Block a user