1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-03 01:17:56 +03:00

Fixed Spice tunneled connections

This commit is contained in:
Adolfo Gómez García 2023-04-13 13:20:52 +02:00
parent 089b8c82dc
commit 7a367d9011
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 3 additions and 0 deletions

View File

@ -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..

View File

@ -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
)