From 7d4243d72a4a5bb13aaa1fd1d5577f959d0aa353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 15 Jul 2020 14:06:55 +0200 Subject: [PATCH] Fixed spice bugs. Thanks to a-sh1 --- server/src/uds/transports/SPICE/remote_viewer_file.py | 2 +- server/src/uds/transports/SPICE/spice.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/transports/SPICE/remote_viewer_file.py b/server/src/uds/transports/SPICE/remote_viewer_file.py index af1f0f47..3c6a6035 100644 --- a/server/src/uds/transports/SPICE/remote_viewer_file.py +++ b/server/src/uds/transports/SPICE/remote_viewer_file.py @@ -102,7 +102,7 @@ class RemoteViewerFile: usb_auto_share = '01'[self.usb_auto_share] new_usb_auto_share = '01'[self.new_usb_auto_share] - ca = self.ca.strip().replace('\n', '\\\\n') # So we get '\\n' and script works fine after replacement + ca = self.ca.strip().replace('\n', '\\n') # So we get '\\n' and script works fine after replacement return TEMPLATE.format( type=self.connectionType, diff --git a/server/src/uds/transports/SPICE/spice.py b/server/src/uds/transports/SPICE/spice.py index d98f4746..1c7e7f0f 100644 --- a/server/src/uds/transports/SPICE/spice.py +++ b/server/src/uds/transports/SPICE/spice.py @@ -106,4 +106,4 @@ class SPICETransport(BaseSpiceTransport): 'as_file': r.as_file, } - return self.getScript('scripts/{}/tunnel.py', osName, sp) + return self.getScript('scripts/{}/direct.py', osName, sp)