Richard van der Hoff d840019192
Fix idna and ipv6 literal handling in MatrixFederationAgent (#4487)
Turns out that the library does a better job of parsing URIs than our
reinvented wheel. Who knew.

There are two things going on here. The first is that, unlike
parse_server_name, URI.fromBytes will strip off square brackets from IPv6
literals, which means that it is valid input to ClientTLSOptionsFactory and
HostnameEndpoint.

The second is that we stay in `bytes` throughout (except for the argument to
ClientTLSOptionsFactory), which avoids the weirdness of (sometimes) ending up
with idna-encoded values being held in `unicode` variables. TBH it probably
would have been ok but it made the tests fragile.
2019-01-28 09:56:59 +00:00
..
2019-01-25 10:48:40 +00:00
2019-01-01 15:40:55 -06:00
2019-01-09 09:27:03 +00:00
2019-01-15 11:21:52 +00:00
2019-01-15 14:38:15 +00:00
2019-01-16 10:54:43 +01:00
2019-01-18 23:13:14 +11:00
2019-01-16 13:46:36 +00:00
2019-01-23 20:04:57 +00:00
2019-01-18 11:22:00 +00:00
2019-01-22 20:34:35 +00:00
2019-01-22 13:34:10 +00:00
2019-01-23 17:26:06 +00:00
2019-01-23 15:38:27 +00:00
2019-01-23 17:25:27 +00:00
2019-01-23 17:24:44 +00:00
2019-01-24 10:57:12 +00:00
2019-01-24 22:57:41 +11:00
2019-01-24 12:47:35 +00:00
2019-01-24 13:31:43 +00:00
2019-01-25 10:37:13 +00:00
2019-01-25 10:48:40 +00:00