diff options
author | lovetox <philipp@hoerist.com> | 2020-03-22 23:51:41 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-22 23:51:41 +0300 |
commit | 3e5e6efc2a6169266ff3307bb0460059510aefd3 (patch) | |
tree | 8cada11008d0dc1a74c99c4b0739e34995056a4a | |
parent | 1031b9afc7acd5606158bb5495c05202f7146217 (diff) |
Client: Add property custom_host
-rw-r--r-- | nbxmpp/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/client.py b/nbxmpp/client.py index d472cd6..6ca8244 100644 --- a/nbxmpp/client.py +++ b/nbxmpp/client.py @@ -167,6 +167,10 @@ class Client(Observable): def set_mode(self, mode): self._mode = mode + @property + def custom_host(self): + return self._custom_host + def set_custom_host(self, host, protocol, type_): if self._domain is None: raise ValueError('Call set_domain() first before set_custom_host()') |