1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-21 18:03:54 +03:00

Fixed encoding to bzip2

This commit is contained in:
Adolfo Gómez García 2017-11-15 12:41:40 +01:00
parent e69800ccd2
commit 88dd6e7494

View File

@ -41,7 +41,7 @@ from uds.core.util import encoders
import logging
__updated__ = '2017-11-14'
__updated__ = '2017-11-15'
logger = logging.getLogger(__name__)
@ -196,7 +196,7 @@ raise Exception('The transport {transport.name} is not supported on your platfor
"""
script = self.getUDSTransportScript(userService, transport, ip, os, user, password, request)
logger.debug('Transport script: {}'.format(script))
return encoders.encode_base64((script), asText=True).replace('\n', '')
return encoders.encode_base64(encoders.encode_bz2(script), asText=True).replace('\n', '')
def getLink(self, userService, transport, ip, os, user, password, request):
'''