You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a domain with only emoji and want to set your server_name to the punycode-encoded versoin of it (e.g. xn--9s9hnf.ws) the server is not able to federate.
This is because twisted.web.client uses the python package idna over here to check if a domain is valid. Editing that to use text.encode("idna") and text.decode("idna") fixes this issue.
Said idna package has an issue here about not supporting emoji domains, and from the sounds of it they do not plan to add it.
Soru would open this issue with the twisted package, but she couldn't find any way to open non-security-critical bug reports with them. This issue also affects synapse as, well, that does not allow you to have all punycode-encoded domains as your server_name, even though they are valid according to the spec etc.
The text was updated successfully, but these errors were encountered:
This issue has been migrated from #8991.
Description
If you have a domain with only emoji and want to set your server_name to the punycode-encoded versoin of it (e.g.
xn--9s9hnf.ws
) the server is not able to federate.This is because twisted.web.client uses the python package idna over here to check if a domain is valid. Editing that to use
text.encode("idna")
andtext.decode("idna")
fixes this issue.Said idna package has an issue here about not supporting emoji domains, and from the sounds of it they do not plan to add it.
Soru would open this issue with the twisted package, but she couldn't find any way to open non-security-critical bug reports with them. This issue also affects synapse as, well, that does not allow you to have all punycode-encoded domains as your server_name, even though they are valid according to the spec etc.
The text was updated successfully, but these errors were encountered: