Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Federation requests use deprecated code & get host header wrong #162

Closed
dbkr opened this issue Jun 7, 2019 · 1 comment
Closed

Federation requests use deprecated code & get host header wrong #162

dbkr opened this issue Jun 7, 2019 · 1 comment

Comments

@dbkr
Copy link
Member

dbkr commented Jun 7, 2019

Federation requests now use new code from synapse to do the requests properly with .well-known lookups, but they also still call the old, simplistic implementation:

server = yield self._pickServer(domain)

This means the old impl replaces the domain with a server from an SRV lookup which means the new code can't do its job properly.

Looks like the call to _pickServer and all that code should just be removed and domain put straight into the URL, and 'https' replaced with 'matrix', and then it should work.

Practically, this is causing invites not to turn up on matrix.org (and oresumably any other servers with similar setup) because the onbind requests don't go through.

@richvdh
Copy link
Member

richvdh commented Mar 2, 2020

this appears to have been fixed by #185

@richvdh richvdh closed this as completed Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants