From ef560a8b20936f67abc1f597b3b7f55d4ff3c287 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 26 Feb 2025 10:50:23 +0100 Subject: [PATCH] printout host name before normalizing --- streams.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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