Merge pull request #1479 from turt2live/travis/s2s/server-discovery
Federation: Document the Host header; Clarify how literal IP addresses are handled
This commit is contained in:
commit
d712bfc73d
1 changed files with 9 additions and 0 deletions
|
@ -97,6 +97,15 @@ default fallback port number of 8448.
|
|||
Homeservers may use SRV records to load balance requests between multiple TLS
|
||||
endpoints or to failover to another endpoint if an endpoint fails.
|
||||
|
||||
If the DNS name is a literal IP address, the port specified or the fallback
|
||||
port should be used.
|
||||
|
||||
When making requests to servers, use the DNS name of the target server in the
|
||||
``Host`` header, regardless of the host given in the SRV record. For example,
|
||||
if making a request to ``example.org``, and the SRV record resolves to ``matrix.
|
||||
example.org``, the ``Host`` header in the request should be ``example.org``. The
|
||||
port number for target server should not appear in the ``Host`` header.
|
||||
|
||||
Server implementation
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue