Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Mutate the url string if it's for unix sockets to include a ':' at th…
Browse files Browse the repository at this point in the history
…e end of the socket filename

The ApplicationServiceAgent knows what to do with this
  • Loading branch information
realtyem committed Oct 4, 2023
1 parent 2e12ac0 commit 3607771
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/appservice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def __init__(
self.url = (
url.rstrip("/") if isinstance(url, str) else None
) # url must not end with a slash
if self.url and self.url.startswith("unix"):
# This is probably a Unix Socket, append a ':' to the end so we can parse it
self.url = self.url + ":"
self.hs_token = hs_token
# The full Matrix ID for this application service's sender.
self.sender = sender
Expand Down

0 comments on commit 3607771

Please sign in to comment.