PrivateBin / Directory

Rust based directory application to collect list of federated instances
https://privatebin.info/directory/
Other
25 stars 8 forks source link

Fully support internationalized domain names #14

Closed elrido closed 4 years ago

elrido commented 4 years ago

It seems that while the hyper library used to test the contents of instances does support IDNs, other tools, like the dns-lookup crate or the mozilla observatory don't.

This leads to a missing observatory grade and the IP lookup failing, leading to a country code of AQ (Antarctica). The instance this was observed to occur is https://тайны.миры-аномалии.рф/ (https://xn--80asmr2c.xn----8sba3adatddjlu7l.xn--p1ai/ in Punycode).

I think I could use hyper::URL::parse() on the given URL and get the host(), which should get me punycode representation for the other services.