Fixed port error on spice tunnel

This commit is contained in:
Adolfo Gómez García 2020-08-26 16:31:26 +02:00
parent 9560ee0699
commit 06b7b58dd2

View File

@ -96,7 +96,7 @@ class TSPICETransport(BaseSpiceTransport):
secure_port: str = con['secure_port'] or '-1'
# Ticket
tunpass = ''.join(random.SystemRandom().choice(string.letters + string.digits) for _i in range(12))
tunpass = ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _i in range(12))
tunuser = TicketStore.create(tunpass)
sshHost, sshPort = self.tunnelServer.value.split(':')