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

added some RDP

This commit is contained in:
Adolfo Gómez García 2017-07-06 12:35:06 +02:00
parent 3a11c9832f
commit c2874e74c8

View File

@ -40,7 +40,7 @@ from uds.core.util import OsDetector
import six
import os
__updated__ = '2017-06-07'
__updated__ = '2017-07-06'
class RDPFile(object):
@ -227,7 +227,6 @@ class RDPFile(object):
res += 'compression:i:' + compression + '\n'
res += 'keyboardhook:i:2' + '\n'
res += 'audiomode:i:' + audioMode + '\n'
res += 'redirectdrives:i:' + drives + '\n'
res += 'redirectprinters:i:' + printers + '\n'
res += 'redirectcomports:i:' + serials + '\n'
res += 'redirectsmartcards:i:' + scards + '\n'
@ -260,8 +259,15 @@ class RDPFile(object):
if self.redirectAudio is True:
res += 'audiocapturemode:i:1\n'
if self.redirectDrives is True:
res += 'drivestoredirect:s:*\n'
res += 'devicestoredirect:s:*\n'
res += 'enablecredsspsupport:i:{}\n'.format(0 if self.enablecredsspsupport is False else 1)
# DirectX?
res += 'redirectdirectx:i:1\n'
return res
def getMacOsX(self):