From 5cd130d8fb96e4326fef3c98b0a489579078374c Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 25 May 2020 16:15:34 +0200 Subject: [PATCH] feat: support ED25519 at subdomain gw with TLS This: - adds subdomain gateway support for ED25519 CIDs in a way that fits in a single DNS label to enable TLS for every IPNS website. - cleans up subdomain redirect logic and adds more explicit error handling. TL;DR on router logic: When CID is longer than 63 characters, router at /ipfs/* and /ipns/* converts to Base36, and if that does not help, returns a human readable 400 Bad Request error. License: MIT Signed-off-by: Marcin Rataj --- core/corehttp/hostname_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/corehttp/hostname_test.go b/core/corehttp/hostname_test.go index cf00e827121..9c181702db1 100644 --- a/core/corehttp/hostname_test.go +++ b/core/corehttp/hostname_test.go @@ -180,5 +180,9 @@ func TestKnownSubdomainDetails(t *testing.T) { } func equalError(a, b error) bool { +<<<<<<< HEAD return (a == nil && b == nil) || (a != nil && b != nil && a.Error() == b.Error()) +======= + return a == nil && b == nil || a != nil && b != nil && a.Error() == b.Error() +>>>>>>> feat: support ED25519 at subdomain gw with TLS }