mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
Fix for very very weird situation (invalid argument in case no OS was
detected...)
This commit is contained in:
parent
c6dd782150
commit
170319f871
@ -202,6 +202,6 @@ class NXTransport(Transport):
|
||||
}.get(os['OS'])
|
||||
|
||||
if os is None:
|
||||
return super(NXTransport, self).getUDSTransportScript(self, userService, transport, ip, os, user, password, request)
|
||||
return super(self.__class__, self).getUDSTransportScript(userService, transport, ip, os, user, password, request)
|
||||
|
||||
return self.getScript('scripts/{}/direct.py'.format(os)).format(r=r)
|
||||
|
@ -237,7 +237,7 @@ class TSNXTransport(Transport):
|
||||
}.get(os['OS'])
|
||||
|
||||
if os is None:
|
||||
return super(TSNXTransport, self).getUDSTransportScript(self, userService, transport, ip, os, user, password, request)
|
||||
return super(self.__class__, self).getUDSTransportScript(userService, transport, ip, os, user, password, request)
|
||||
|
||||
return self.getScript('scripts/{}/tunnel.py'.format(os)).format(
|
||||
r=r,
|
||||
|
Loading…
Reference in New Issue
Block a user