From 5d3a7ddd54d1a6df88aef156f149e0590734ed9a Mon Sep 17 00:00:00 2001 From: Nils <> Date: Fri, 9 Jul 2021 00:44:12 +0200 Subject: [PATCH] pynsm client lib: fix a rare crash where the host name must be case sensitive but pythons urllib always forces lowercase --- extras/pynsm/nsmclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/pynsm/nsmclient.py b/extras/pynsm/nsmclient.py index fb26e2f..fac7cad 100644 --- a/extras/pynsm/nsmclient.py +++ b/extras/pynsm/nsmclient.py @@ -387,7 +387,8 @@ class NSMClient(object): else: #osc.udp://hostname:portnumber/ o = urlparse(nsmOSCUrl) - return o.hostname, o.port + #return o.hostname, o.port #this always make the hostname lowercase. usually it does not matter, but we got crash reports. Alternative: + return o.netloc.split(":")[0], o.port def getExecutableName(self): """Finding the actual executable name can be a bit hard