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:
parent
d8fce3bb73
commit
1fbc4b9bfd
@ -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,
|
||||
)
|
||||
|
@ -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',
|
||||
|
@ -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:
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user