fix: add hardcoded legacyId mapping for vpsville migration
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m43s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m43s
This commit is contained in:
@@ -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-ноды)
|
// Фильтруем только jumphost'ы (не exit-ноды)
|
||||||
const jumphosts = allServers
|
const jumphosts = allServers
|
||||||
.filter(s => s.type !== 'exit')
|
.filter(s => s.type !== 'exit')
|
||||||
|
|||||||
Reference in New Issue
Block a user