mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-13 08:58:35 +03:00
Merge remote-tracking branch 'origin/v3.6'
This commit is contained in:
commit
1801feec6c
@ -104,7 +104,6 @@ class RemoteViewerFile:
|
|||||||
delete_file = '01'[self.delete_file]
|
delete_file = '01'[self.delete_file]
|
||||||
usb_auto_share = '01'[self.usb_auto_share]
|
usb_auto_share = '01'[self.usb_auto_share]
|
||||||
new_usb_auto_share = '01'[self.new_usb_auto_share]
|
new_usb_auto_share = '01'[self.new_usb_auto_share]
|
||||||
ssl_connection = '01'[self.ssl_connection]
|
|
||||||
|
|
||||||
ca = self.ca.strip().replace(
|
ca = self.ca.strip().replace(
|
||||||
'\n', '\\n'
|
'\n', '\\n'
|
||||||
@ -127,7 +126,7 @@ class RemoteViewerFile:
|
|||||||
host_subject=self.host_subject if tls_port != '-1' else '',
|
host_subject=self.host_subject if tls_port != '-1' else '',
|
||||||
ca=ca if tls_port != '-1' else '',
|
ca=ca if tls_port != '-1' else '',
|
||||||
secure_channel='secure-channels=main;inputs;cursor;playback;record;display;usbredir;smartcard'
|
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 '',
|
else '',
|
||||||
proxy=self.proxy,
|
proxy=self.proxy,
|
||||||
)
|
)
|
||||||
|
@ -104,7 +104,7 @@ class SPICETransport(BaseSpiceTransport):
|
|||||||
r.usb_auto_share = self.usbShare.isTrue()
|
r.usb_auto_share = self.usbShare.isTrue()
|
||||||
r.new_usb_auto_share = self.autoNewUsbShare.isTrue()
|
r.new_usb_auto_share = self.autoNewUsbShare.isTrue()
|
||||||
r.smartcard = self.smartCardRedirect.isTrue()
|
r.smartcard = self.smartCardRedirect.isTrue()
|
||||||
r.ssl = self.sslConnection.isTrue()
|
r.ssl_connection = self.sslConnection.isTrue()
|
||||||
|
|
||||||
osName = {
|
osName = {
|
||||||
OsDetector.KnownOS.Windows: 'windows',
|
OsDetector.KnownOS.Windows: 'windows',
|
||||||
|
@ -117,8 +117,9 @@ class BaseSpiceTransport(transports.Transport):
|
|||||||
SSLConnection = gui.CheckBoxField(
|
SSLConnection = gui.CheckBoxField(
|
||||||
order=9,
|
order=9,
|
||||||
label=_('SSL Connection'),
|
label=_('SSL Connection'),
|
||||||
tooltip=_('If checked, SPICE protocol will required SSL connection.'),
|
tooltip=_('If checked, SPICE protocol will allow SSL connections.'),
|
||||||
defvalue=gui.FALSE,
|
defvalue=gui.TRUE,
|
||||||
|
tab=gui.ADVANCED_TAB,
|
||||||
)
|
)
|
||||||
|
|
||||||
def isAvailableFor(self, userService: 'models.UserService', ip: str) -> bool:
|
def isAvailableFor(self, userService: 'models.UserService', ip: str) -> bool:
|
||||||
|
@ -102,6 +102,7 @@ class TSPICETransport(BaseSpiceTransport):
|
|||||||
usbShare = BaseSpiceTransport.usbShare
|
usbShare = BaseSpiceTransport.usbShare
|
||||||
autoNewUsbShare = BaseSpiceTransport.autoNewUsbShare
|
autoNewUsbShare = BaseSpiceTransport.autoNewUsbShare
|
||||||
smartCardRedirect = BaseSpiceTransport.smartCardRedirect
|
smartCardRedirect = BaseSpiceTransport.smartCardRedirect
|
||||||
|
sslConnection = BaseSpiceTransport.SSLConnection
|
||||||
|
|
||||||
def initialize(self, values: 'Module.ValuesType'):
|
def initialize(self, values: 'Module.ValuesType'):
|
||||||
if values:
|
if values:
|
||||||
@ -176,6 +177,7 @@ class TSPICETransport(BaseSpiceTransport):
|
|||||||
r.usb_auto_share = self.usbShare.isTrue()
|
r.usb_auto_share = self.usbShare.isTrue()
|
||||||
r.new_usb_auto_share = self.autoNewUsbShare.isTrue()
|
r.new_usb_auto_share = self.autoNewUsbShare.isTrue()
|
||||||
r.smartcard = self.smartCardRedirect.isTrue()
|
r.smartcard = self.smartCardRedirect.isTrue()
|
||||||
|
r.ssl_connection = self.sslConnection.isTrue()
|
||||||
|
|
||||||
osName = {
|
osName = {
|
||||||
OsDetector.KnownOS.Windows: 'windows',
|
OsDetector.KnownOS.Windows: 'windows',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user