<-- back to the mailing list

[tech] IPv6 addresses in URLs

Alex // nytpu alex at nytpu.com

Thu Apr 15 17:38:08 BST 2021

- - - - - - - - - - - - - - - - - - - 

The problem is that Gemini mandates Server Name Indication (SNI). It lets youhost multiple (sub)domains at one IP address.

If you request gemini://173.230.145.243/index.gmi (flounder.online), how do youknow which subdomain it goes to? flounder.online has like a hundred subdomains,all of which have an index.gmi, all of which are hosted at the same IP address.

You could say "then it should just default to some specific domain," but thenthat's a server issue and the client can't do anything about it since it doesn'tknow what the "default" domain is. Also servers are allowed to drop requeststhat don't use SNI, so they're under no obligation to support using a raw IPeven though I personally do think it'd be a nice feature to have.

~nytpu

-- Alex // nytpualex at nytpu.comGPG Key: https://www.nytpu.com/files/pubkey.ascKey fingerprint: 43A5 890C EE85 EA1F 8C88 9492 ECCD C07B 337B 8F5Bhttps://useplaintext.email/-------------- next part --------------A non-text attachment was scrubbed...Name: signature.ascType: application/pgp-signatureSize: 833 bytesDesc: not availableURL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210415/3eafafc4/attachment.sig>