Skip to content

Commit

Permalink
feat: support ED25519 at subdomain gw with TLS
Browse files Browse the repository at this point in the history
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 <lidel@lidel.org>
  • Loading branch information
lidel authored and petar committed Jul 13, 2020
1 parent e38741a commit 5cd130d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/corehttp/hostname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5cd130d

Please sign in to comment.