commit 09ac054ab1f75258fedc7a8cb4cfaa9b2171f2bb
parent bc6ef3a082d9c7a10bd022116382a55b393c83ed
Author: triesap <tyson@radroots.org>
Date: Tue, 6 Oct 2026 07:17:28 +0000
fix: Reject local home.arpa relay apex
- Reject the exact home.arpa host alongside its subdomains.
- Add the independently reproduced relay admission regression.
- Preserve original source and failed parent acceptance evidence.
- Qualify the correction with source review and browser checks.
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/src/lib/config/relays.ts b/web/src/lib/config/relays.ts
@@ -76,6 +76,7 @@ function publicAddress(host: string): boolean {
!/(?:^|\.)(?:localhost|local|internal|invalid|test|example|onion)$/.test(
host
) &&
+ host !== 'home.arpa' &&
!host.endsWith('.home.arpa')
);
}
diff --git a/web/tests/unit/relay-config.test.ts b/web/tests/unit/relay-config.test.ts
@@ -66,6 +66,7 @@ describe('fixed relay policy', () => {
'wss://sub.localhost',
'wss://relay.local',
'wss://relay.internal',
+ 'wss://home.arpa',
'wss://relay.home.arpa',
'wss://relay.test',
'wss://127.0.0.1',