From 9b88d1684b9f1c594e04d78dd0d58805a7788f38 Mon Sep 17 00:00:00 2001 From: mohit1523 <85980940+mohit1523@users.noreply.github.com> Date: Fri, 18 Aug 2023 21:21:03 +0530 Subject: [PATCH] Update server-server-api.md I have updated the list of Resolving server names in step 3 from unordered list to ordered list. Because we care about its order --- content/server-server-api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/server-server-api.md b/content/server-server-api.md index c2b31118..d0167e01 100644 --- a/content/server-server-api.md +++ b/content/server-server-api.md @@ -135,20 +135,20 @@ to send. The process overall is as follows: to step 4. If the response is valid, the `m.server` property is parsed as `[:]` and processed as follows: - - If `` is an IP literal, then that IP address + 1. If `` is an IP literal, then that IP address should be used together with the `` or 8448 if no port is provided. The target server must present a valid TLS certificate for the IP address. Requests must be made with a `Host` header containing the IP address, including the port if one was provided. - - If `` is not an IP literal, and + 2. If `` is not an IP literal, and `` is present, an IP address is discovered by looking up CNAME, AAAA or A records for ``. The resulting IP address is used, alongside the ``. Requests must be made with a `Host` header of `:`. The target server must present a valid certificate for ``. - - If `` is not an IP literal and no + 3. If `` is not an IP literal and no `` is present, an SRV record is looked up for `_matrix._tcp.`. This may result in another hostname (to be resolved using AAAA or A records) and port. @@ -156,7 +156,7 @@ to send. The process overall is as follows: a `Host` header containing the ``. The target server must present a valid certificate for ``. - - If no SRV record is found, an IP address is resolved using CNAME, AAAA + 4. If no SRV record is found, an IP address is resolved using CNAME, AAAA or A records. Requests are then made to the resolve IP address and a port of 8448, using a `Host` header of ``. The target server must present a valid