refactor(FilterManager): rename country and provider variables to serverCountry and serverProvider for clarity and consistency
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 3m3s

This commit is contained in:
2026-02-10 19:02:24 +07:00
parent 4155963d97
commit 09c343a272
+8 -8
View File
@@ -806,8 +806,8 @@ function FilterManager() {
const serverDns = matchedServer?.dns || matchedServer?.hostName || selectedServer.name || '';
const serverId = matchedServer?.id || matchedServer?.ip || selectedServer.id || selectedServer.name || '';
const country = matchedServer?.country || '';
const provider = matchedServer?.provider || '';
const serverCountry = matchedServer?.country || '';
const serverProvider = matchedServer?.provider || '';
const gws = [];
@@ -832,8 +832,8 @@ function FilterManager() {
ip: gw.ip,
comment: gw.description || '',
serverDns: serverDns,
country: country,
provider: provider,
country: gw.country || serverCountry,
provider: gw.provider || serverProvider,
primary: false // В network-config нет поля primary, но можно добавить если нужно
});
});
@@ -848,8 +848,8 @@ function FilterManager() {
ip: gw.ip || '',
comment: gw.comment || '',
serverDns: serverDns,
country: country,
provider: provider,
country: gw.country || serverCountry,
provider: gw.provider || serverProvider,
primary: gw.primary
});
}
@@ -866,8 +866,8 @@ function FilterManager() {
ip: gw.ip || '',
comment: gw.comment || '',
serverDns: serverDns,
country: country,
provider: provider,
country: gw.country || serverCountry,
provider: gw.provider || serverProvider,
primary: gw.primary
});
}