From 7a367d90113d5e9c25921ab1b7ec9f620c8a95c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 13 Apr 2023 13:20:52 +0200 Subject: [PATCH] Fixed Spice tunneled connections --- server/src/uds/transports/SPICE/scripts/macosx/tunnel.py | 1 + server/src/uds/transports/SPICE/spice_tunnel.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/server/src/uds/transports/SPICE/scripts/macosx/tunnel.py b/server/src/uds/transports/SPICE/scripts/macosx/tunnel.py index 50539dfbc..dccddb94f 100644 --- a/server/src/uds/transports/SPICE/scripts/macosx/tunnel.py +++ b/server/src/uds/transports/SPICE/scripts/macosx/tunnel.py @@ -43,6 +43,7 @@ if sp['ticket']: # type: ignore fss = None if sp['ticket_secure']: # type: ignore # Open tunnel + theFile = sp['as_file'] fss = forward(remote=(sp['tunHost'], int(sp['tunPort'])), ticket=sp['ticket_secure'], timeout=sp['tunWait'], check_certificate=sp['tunChk']) # type: ignore # Check that tunnel works.. diff --git a/server/src/uds/transports/SPICE/spice_tunnel.py b/server/src/uds/transports/SPICE/spice_tunnel.py index fe2e895a9..6d9bae5f8 100644 --- a/server/src/uds/transports/SPICE/spice_tunnel.py +++ b/server/src/uds/transports/SPICE/spice_tunnel.py @@ -128,6 +128,7 @@ class TSPICETransport(BaseSpiceTransport): ticket = TicketStore.create_for_tunnel( userService=userService, port=int(con['port']), + host=con['address'], validity=self.tunnelWait.num() + 60, # Ticket overtime ) @@ -136,6 +137,7 @@ class TSPICETransport(BaseSpiceTransport): ticket_secure = TicketStore.create_for_tunnel( userService=userService, port=int(con['secure_port']), + host=con['address'], validity=self.tunnelWait.num() + 60, # Ticket overtime )