diff --git a/streams.py b/streams.py index b1dcc1c..b025757 100644 --- a/streams.py +++ b/streams.py @@ -77,8 +77,7 @@ class Stream(Base): self.settimeout(self.timeout) host, _, port = self.uri.partition(':') # try to convert uri to host name - host = short_hostname(host) - self.uri = self.tags['stream'] = f'{host}:{port}' + self.uri = self.tags['stream'] = f'{short_hostname(host)}:{port}' print(f'{host}:{port}', '=', self.uri, 'connected') self._buffer = [] self._deadline = INF