From d4cfc25341bbfcc5ef7cdd90d71cbb991ea5d42e Mon Sep 17 00:00:00 2001 From: rockyjohn890 <144576338+rockyjohn890@users.noreply.github.com> Date: Sun, 24 Dec 2023 21:20:14 +0700 Subject: [PATCH] Update xray.html --- web/html/xui/xray.html | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 54f10ddf..96f5f32b 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -221,6 +221,7 @@ + @@ -543,7 +544,8 @@ domains: { ads: [ "geosite:category-ads-all", - "ext:geosite_IR.dat:category-ads-all" + "ext:geosite_IR.dat:category-ads-all", + "ext:geosite_VN.dat:category-ads-all" ], security: [ "ext:geosite_IR.dat:malware", @@ -572,12 +574,13 @@ "regexp:.*\\.vn$", "ext:geosite_VN.dat:vn", "ext:geosite_VN.dat:ads" - ] }, familyProtectDNS: { "servers": [ "1.1.1.3", // https://developers.cloudflare.com/1.1.1.1/setup/ - "1.0.0.3" + "1.0.0.3", + "94.140.14.15", // https://adguard-dns.io/kb/general/dns-providers/ + "94.140.15.16" ], "queryStrategy": "UseIPv4" }, @@ -1490,6 +1493,20 @@ }, }, }, + }, + VNWARPSettings: { + get: function () { + return doAllItemsExist(this.settingsData.domains.vn, this.warpDomains); + }, + set: function (newValue) { + if (newValue) { + this.warpDomains = [...this.warpDomains, ...this.settingsData.domains.vn]; + } else { + this.warpDomains = this.warpDomains.filter(data => !this.settingsData.domains.vn.includes(data)); + } + }, + }, + }, });