mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 15:35:58 +00:00
don't send country to cloud update - is not really needed
This commit is contained in:
@@ -199,8 +199,6 @@ async function updateCloudFiles(isRefresh) {
|
|||||||
lastCloudFilesTags = '';
|
lastCloudFilesTags = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const ipInfo = await getPublicIpInfo();
|
|
||||||
|
|
||||||
const tags = (await collectCloudFilesSearchTags()).join(',');
|
const tags = (await collectCloudFilesSearchTags()).join(',');
|
||||||
let lastCheckedTm = 0;
|
let lastCheckedTm = 0;
|
||||||
if (tags == lastCloudFilesTags && cloudFiles.length > 0) {
|
if (tags == lastCloudFilesTags && cloudFiles.length > 0) {
|
||||||
@@ -212,7 +210,7 @@ async function updateCloudFiles(isRefresh) {
|
|||||||
const resp = await axios.default.get(
|
const resp = await axios.default.get(
|
||||||
`${DBGATE_CLOUD_URL}/public-cloud-updates?lastCheckedTm=${lastCheckedTm}&tags=${tags}&isRefresh=${
|
`${DBGATE_CLOUD_URL}/public-cloud-updates?lastCheckedTm=${lastCheckedTm}&tags=${tags}&isRefresh=${
|
||||||
isRefresh ? 1 : 0
|
isRefresh ? 1 : 0
|
||||||
}&country=${ipInfo?.country || ''}`,
|
}`,
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
...getLicenseHttpHeaders(),
|
...getLicenseHttpHeaders(),
|
||||||
|
|||||||
Reference in New Issue
Block a user