[go-nuts] Should an IPv4 address input to idna.Registration.ToASCII() return an error or not?

2022-11-12 Thread redder
https://go.dev/play/p/HdLLJz0uz2q idna.Registration.ToASCII("100.100.100.100") doesn't return an error. Surely an IPv4 address can never be registered as a domain name and so this should return an error? I just need confirmation: is this function working as expected or is this a bug? -- You r

Re: [go-nuts] Should an IPv4 address input to idna.Registration.ToASCII() return an error or not?

2022-11-13 Thread redder
characters. An IPv6 address is not a syntactically valid > domain name so you'll get an error. There is nothing about the conversion > process that requires validating whether the TLD (the right-most "100" in > your example) is in fact a valid TLD. > > On Sat, Nov 12