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:
parent
e69800ccd2
commit
88dd6e7494
@ -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):
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user