Browse Source

pynsm client lib: fix a rare crash where the host name must be case sensitive but pythons urllib always forces lowercase

tags/v1.5.3
Nils 3 years ago
parent
commit
5d3a7ddd54
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      extras/pynsm/nsmclient.py

+ 2
- 1
extras/pynsm/nsmclient.py View File

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


Loading…
Cancel
Save