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:
parent
089b8c82dc
commit
7a367d9011
@ -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..
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user