diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py index b26b76f1fea3..41788e127c8a 100644 --- a/synapse/appservice/__init__.py +++ b/synapse/appservice/__init__.py @@ -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