printout host name before normalizing

This commit is contained in:
2025-02-26 10:50:23 +01:00
parent 6a6e8b1bcc
commit ef560a8b20

View File

@ -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