1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-23 17:34:17 +03:00

fixed udsactor pre command parameters

This commit is contained in:
Adolfo Gómez García 2020-01-27 13:31:56 +01:00
parent d8826c2841
commit 1518cc0294

View File

@ -398,7 +398,7 @@ class CommonService: # pylint: disable=too-many-instance-attributes
Base preconnect executes the preconnect command
'''
if self._cfg.pre_command:
self.execute(self._cfg.pre_command, 'preConnect')
self.execute(self._cfg.pre_command + ' "{}" "{}" "{}" "{}"'.format(userName.replace('"', '%22'), protocol, ip, hostname), 'preConnect')
return 'ok'