diff options
author | lovetox <philipp@hoerist.com> | 2020-04-05 23:57:32 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-04-05 23:57:32 +0300 |
commit | f3df66ee57b632f9526604ab16e9fc6de7ab8e12 (patch) | |
tree | f103d41fdf19aa976496e02c2e1089ee97a98406 /nbxmpp/client.py | |
parent | 19d047e08a3e7cf3ac3e7a9d0c71637d8519ef78 (diff) |
Client: Allow websocket URIs when using set_custom_host()
Diffstat (limited to 'nbxmpp/client.py')
-rw-r--r-- | nbxmpp/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nbxmpp/client.py b/nbxmpp/client.py index 44c192c..bcb159d 100644 --- a/nbxmpp/client.py +++ b/nbxmpp/client.py @@ -171,10 +171,10 @@ class Client(Observable): def custom_host(self): return self._custom_host - def set_custom_host(self, host, protocol, type_): + def set_custom_host(self, host_or_uri, protocol, type_): if self._domain is None: raise ValueError('Call set_domain() first before set_custom_host()') - self._custom_host = (host, protocol, type_) + self._custom_host = (host_or_uri, protocol, type_) def set_accepted_certificates(self, certificates): self._accepted_certificates = certificates |