diff --git a/diagnose/index.html b/diagnose/index.html new file mode 100644 index 0000000..2ff9f2a --- /dev/null +++ b/diagnose/index.html @@ -0,0 +1,213 @@ + + + +LanCache Host Checker + + + + + + + + + +
+
+
+
+ +
+

Lancache Test

+

We are aware of 0 domains spanning 0 providers.

+

Test this website in the Mozilla Firefox browser

+

During Lancache Test if you find the listed Gaming Stream sites RED then your Cache Services are NOT working. Please use our following DNS to resolve this issue instantly!

+
+
+
+

DNS IPv4:
+ 1. 10.100.100.10
+

+
+

DNS IPv6:
+ 1. Please remove all IPV6 DNS from ROUTER and PC
+

+
+
+
+
+
+
+
+
+
+
+
+ +   + +
+
+
+
+
+
+
+ + The following domains did not resolve to a LanCache:
+
+
+
+
Nothing is defined?
+ I'm not sure how you've done this, but you have.

+ So well done.
+ 0/0 domains working
+
+
+
+ + diff --git a/diagnose/sites.js b/diagnose/sites.js new file mode 100644 index 0000000..78cdec2 --- /dev/null +++ b/diagnose/sites.js @@ -0,0 +1,34 @@ +var cachedomains = {} +var urltext=''; + +const downloadJSON = (url, done)=> { + return fetch(url, { + method: 'GET', + }) + .then(response => response.json()) + .then(done) +} +const download = (url, done)=> { + return fetch(url, { + method: 'GET', + }) + .then(response => response.text()) + .then(done) +} +const downloadDomainFile = (data) => { + return download('/' + data.domain_files[0], (domains) => { + data.domains = domains.split('\n') + }) +} +const downloadDomains = (done) => { + return downloadJSON('/cache_domains.json', (data)=> { + cachedomains = data.cache_domains; + const promises = [] + for(const domain of cachedomains){ + promises.push(downloadDomainFile(domain)); + } + Promise + .all(promises) // (4) + .then(done); + }) +} \ No newline at end of file