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

Fixed & updated patch from @Future998

This commit is contained in:
Adolfo Gómez García 2023-01-31 14:18:27 +01:00
parent d8fce3bb73
commit 1fbc4b9bfd
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
4 changed files with 7 additions and 5 deletions

View File

@ -104,7 +104,6 @@ class RemoteViewerFile:
delete_file = '01'[self.delete_file]
usb_auto_share = '01'[self.usb_auto_share]
new_usb_auto_share = '01'[self.new_usb_auto_share]
ssl_connection = '01'[self.ssl_connection]
ca = self.ca.strip().replace(
'\n', '\\n'
@ -127,7 +126,7 @@ class RemoteViewerFile:
host_subject=self.host_subject if tls_port != '-1' else '',
ca=ca if tls_port != '-1' else '',
secure_channel='secure-channels=main;inputs;cursor;playback;record;display;usbredir;smartcard'
if ssl_connection and tls_port != '-1'
if self.ssl_connection and tls_port != '-1'
else '',
proxy=self.proxy,
)

View File

@ -101,7 +101,7 @@ class SPICETransport(BaseSpiceTransport):
r.usb_auto_share = self.usbShare.isTrue()
r.new_usb_auto_share = self.autoNewUsbShare.isTrue()
r.smartcard = self.smartCardRedirect.isTrue()
r.ssl = self.sslConnection.isTrue()
r.ssl_connection = self.sslConnection.isTrue()
osName = {
OsDetector.KnownOS.Windows: 'windows',

View File

@ -116,8 +116,9 @@ class BaseSpiceTransport(transports.Transport):
SSLConnection = gui.CheckBoxField(
order=9,
label=_('SSL Connection'),
tooltip=_('If checked, SPICE protocol will required SSL connection.'),
defvalue=gui.FALSE,
tooltip=_('If checked, SPICE protocol will allow SSL connections.'),
defvalue=gui.TRUE,
tab=gui.ADVANCED_TAB,
)
def isAvailableFor(self, userService: 'models.UserService', ip: str) -> bool:

View File

@ -99,6 +99,7 @@ class TSPICETransport(BaseSpiceTransport):
usbShare = BaseSpiceTransport.usbShare
autoNewUsbShare = BaseSpiceTransport.autoNewUsbShare
smartCardRedirect = BaseSpiceTransport.smartCardRedirect
sslConnection = BaseSpiceTransport.SSLConnection
def initialize(self, values: 'Module.ValuesType'):
if values:
@ -176,6 +177,7 @@ class TSPICETransport(BaseSpiceTransport):
r.usb_auto_share = self.usbShare.isTrue()
r.new_usb_auto_share = self.autoNewUsbShare.isTrue()
r.smartcard = self.smartCardRedirect.isTrue()
r.ssl_connection = self.sslConnection.isTrue()
osName = {
OsDetector.KnownOS.Windows: 'windows',