fix: add hardcoded legacyId mapping for vpsville migration
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m43s

This commit is contained in:
2026-01-20 15:14:04 +07:00
parent 9a1991c23c
commit 8db03ca5b9
+14
View File
@@ -767,6 +767,20 @@ function FilterManager() {
}
});
// Хардкодный маппинг для известных серверов (миграция)
// Добавляем напрямую если не найдено из старых конфигов
const knownLegacyIds = {
'vpsville': '1752483928015',
'msk': '1752483928015',
'msk.rt.shx.su': '1752483928015',
'ihor': '1752483921584',
};
Object.entries(knownLegacyIds).forEach(([name, id]) => {
if (!legacyIdMap[name.toLowerCase()]) {
legacyIdMap[name.toLowerCase()] = id;
}
});
// Фильтруем только jumphost'ы (не exit-ноды)
const jumphosts = allServers
.filter(s => s.type !== 'exit')