This commit is contained in:
MHSanaei
2023-05-13 13:53:17 +03:30
parent 46bc39c160
commit a55a1a7102
2 changed files with 1 additions and 25 deletions

View File

@@ -309,9 +309,6 @@
},
}
},
created() {
this.checkForGeosites();
},
methods: {
loading(spinning = true, obj) {
if (obj == null) this.spinning = spinning;
@@ -406,27 +403,6 @@
this.saveBtnDisable = true;
}
},
checkForGeosites() {
const domainsToCheck = [
{
query: "category-ru-gov",
key: "this.settingsData.domains.ru",
data: [
"geosite:category-ru-gov",
"regexp:.*\\.ru$"
]
},
];
this.loading(true);
domainsToCheck.forEach(async (dd) => {
const msg = await HttpUtil.get(`/panel/setting/searchDatafiles?query=${dd.query}`);
if (msg.success && msg.obj) {
[dd.key] = dd.data;
console.log([dd.key])
}
})
this.loading(false);
},
checkRequiredOutbounds() {
const newTemplateSettings = this.templateSettings;
const haveIPv4Outbounds = newTemplateSettings.outbounds.some((o) => o?.tag === "IPv4");