diff --git a/public/admin.html b/public/admin.html index 417f772..6266778 100644 --- a/public/admin.html +++ b/public/admin.html @@ -35,7 +35,7 @@

Old site links

JSON file {"oldrefs": {"old username": "network username"}} replaces the whole map.

- + diff --git a/public/assets/common.js b/public/assets/common.js index 8ae2465..2427929 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -8,7 +8,7 @@ window.VAB = (function () { const short = a => a ? a.slice(0, 6) + '...' + a.slice(-4) : ''; const framed = (() => { try { return window.top !== window.self; } catch (e) { return true; } })(); const n = x => Number(x || 0).toLocaleString('en-US'); - function status(msg, cls) { const el = $('status'); if (!el) return; el.hidden = !msg; el.className = 'note ' + (cls || ''); el.textContent = msg || ''; } + function status(msg, cls) { const el = $('status'); if (!el) return; el.hidden = !msg; el.className = 'note ' + (cls || ''); el.textContent = msg || ''; if (msg) el.scrollIntoView({ block: 'nearest', behavior: 'smooth' }); } // the note sits at the foot of the page: bring it into view (2026-11-15, a failed post looked like a dead button) async function getJSON(url, opts) { const r = await fetch(url, opts); let j = {}; try { j = await r.json(); } catch (e) {} if (!r.ok && !j.error) j.error = 'Request failed (' + r.status + ')'; j._status = r.status; return j; } const post = (url, body) => getJSON(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body || {}) }); diff --git a/public/boost.html b/public/boost.html index bf647db..d1a9df0 100644 --- a/public/boost.html +++ b/public/boost.html @@ -67,7 +67,7 @@ - + diff --git a/public/contract.html b/public/contract.html index dd479a3..a32e0b0 100644 --- a/public/contract.html +++ b/public/contract.html @@ -44,7 +44,7 @@ - + diff --git a/public/disclaimer.html b/public/disclaimer.html index 4f2a131..b112f12 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -33,7 +33,7 @@

Prices and taxes

Boosts are priced in US dollars and paid in POL, whose price moves. Anything you receive is in POL and its dollar value can change. You are responsible for any taxes on what you receive where you live.

Who to ask

TrustClickz, 615 Green Valley Drive, Moody, AL 35004. Network support.

- + diff --git a/public/how.html b/public/how.html index e8f0ed3..922b3b1 100644 --- a/public/how.html +++ b/public/how.html @@ -129,7 +129,7 @@

A Boost buys advertising, not income. Nothing is promised.

- + diff --git a/public/index.html b/public/index.html index 9a433d5..cffaa4b 100644 --- a/public/index.html +++ b/public/index.html @@ -95,7 +95,7 @@

A Boost buys advertising, not income. Nothing is promised.

- + diff --git a/public/ledger.html b/public/ledger.html index daaef70..4e3baf1 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -34,7 +34,7 @@

Levels follow the buyer's sponsor line. Someone who has not bought a Boost is passed over and their share goes up to the next person who has. Advertising, not income. Nothing is promised.

- + diff --git a/public/member.html b/public/member.html index 1c48d6a..e8d17d0 100644 --- a/public/member.html +++ b/public/member.html @@ -42,7 +42,7 @@

Advertising, not income. Nothing is promised.

- + diff --git a/public/my.html b/public/my.html index 24d5acd..e8d8bdd 100644 --- a/public/my.html +++ b/public/my.html @@ -84,7 +84,7 @@ - + diff --git a/public/privacy.html b/public/privacy.html index 8b5e6cc..6d2fb35 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -34,7 +34,7 @@

Your choices

You can edit your ad at any time, or ask us to remove it and your account here. Records on the blockchain cannot be removed by anyone.

Contact

Questions, problems or a request about your data: network support, or write to TrustClickz, 615 Green Valley Drive, Moody, AL 35004.

- + diff --git a/public/promote.html b/public/promote.html index 2b7b82e..b258bbc 100644 --- a/public/promote.html +++ b/public/promote.html @@ -33,7 +33,7 @@

Loading the kit...

- + diff --git a/public/terms.html b/public/terms.html index ed37630..37e029e 100644 --- a/public/terms.html +++ b/public/terms.html @@ -42,7 +42,7 @@

Limits

As far as the law allows, we are not responsible for losses caused by the blockchain, your wallet, the price of POL, third-party websites in ads, or events outside our control, and our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.

Contact

Questions, problems or a request about your data: network support, or write to TrustClickz, 615 Green Valley Drive, Moody, AL 35004.

- + diff --git a/safety.js b/safety.js index 1ea2d64..f4b0f8c 100644 --- a/safety.js +++ b/safety.js @@ -69,11 +69,15 @@ function privateIp(ip) { if (s.startsWith('::ffff:')) return privateIp(s.slice(7)); return s === '::' || s === '::1' || s.startsWith('fc') || s.startsWith('fd') || s.startsWith('fe80') || s.startsWith('ff'); } +// Node 20's https agent asks for every address (opts.all, for happy eyeballs) and expects an array back; answering with one +// address broke every link check (2026-11-15: no text ad could be posted). Answer in the shape asked for, private ones refused. function safeLookup(host, opts, cb) { - dns.lookup(host, Object.assign({}, opts, { all: false }), (err, addr, fam) => { + if (typeof opts === 'function') { cb = opts; opts = {}; } + dns.lookup(host, Object.assign({}, opts, { all: true }), (err, list) => { if (err) return cb(err); - if (privateIp(addr)) return cb(new Error('private address')); - cb(null, addr, fam); + if (!list.length || list.some(a => privateIp(a.address))) return cb(new Error('private address')); + if (opts && opts.all) return cb(null, list); + cb(null, list[0].address, list[0].family); }); } // GET with a size cap, a timeout and no redirects followed (a redirect is reported so the caller can decide)