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

fixed spice tunnel

This commit is contained in:
Adolfo Gómez García 2023-04-13 13:31:38 +02:00
commit 7e03b63816
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
7 changed files with 12 additions and 11 deletions

View File

@ -38,6 +38,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

@ -1 +1 @@
QXLFvR9cYf0v0SLEBYE8VcY6UMirU/z8htzXU1Qzz89r6hcmsolTyYLuafGNzmcv4qs6qLU4zfXdr4khTzx4utwsSA52dJX5lDs4lN+9p8GCFDKw+Ky4jiE70OaWouwL8ryBmm6RJ/A6pMGPr8DPRWbib27uMm8BR08rSwal0gpbxufGnxs3WS9zm7Ye8AzQ5woSArBl788239yjBqW1L/1ynGdwXUr4NFlE1DOu6v77iO7igbbD9ros8fqKwi1c7q6T8fk6zrDYGZIV3/6d444yuk7zB9mucpz6Uv96fwYr5f62n7hNANRF5M4zdQpNcn1Awf40EAkF+zBUGqGZhAnYQgodYGLKzHflGJ/zDe+0oN0CbTAIW+DqTlijdXHa0iRwE6YjWVAZ/rNvWnYpNPkMX2hRzG9xVPf2GWnUSpl1+lk5DLNmlwSOB+kX6uX9u8W7OI3Xuy7geNGsIsxmDve03h/tTlzWdAPpAcI/ZlcIS0wfnmAVrMxPXuykekewuq9/S2XhUsQy078+dhFbFHNKz9JAhkiR0fiDMSCnbQbtZ4VscPVwkPfa3wwIbauLAv0i5+XHnOnXUc/zqE70af+kyTssx8fDZ6js6m/njsd5zJ/Gn4cKRfLxeVhwPW682q32Gko+4hJA16jPw0mQZHKZb0SXM+4Db0B0968kNY4=
nIHuZ7FPPHZ6q7ITXxr+JKKVs38SDJiexURVymKXPIQmslDVOGcxRfrSu3RqujQ8MdtvJy7UOU90pBbOFANGo4hws5pY0ZndaVydzdrg3l8FBrbe+yGziFFXFfaby5xuRC2caCnngQZt5vv3jtL4dvIsaujaIIWw3Sqo8Oc23KguKwrGeIJhzbRmY3rJ+z0oHieJ8iDLhNKs725G8X4yo91IDQ73eFCGod9jwJwlGmYdk9hCvgvU1cuzESGzkHt3Fwzk6VGfDdRCJdxIP4CEgGgabBJiKKpsa6XnnLWuWPXFcut4uK7dmy17qOo8cgS2mlvo6ItT8IygSEyMciqs4ZnQ4dl5CUryvhxodmmiNTPvMgJQVVEMrOHZ7lVEYuWr3tD9uxyqBtD28ADDTLC84v5kWgXLXo9AdhQ5gZw/dChSTsitH95jbMLBDgeTmXNukboSkHjT1erfsohexEoPQQpFiQOS4mBxzbnF1/4vC7r8RyIOLg9XAlsRbGLF/sDx+5itLxgESJzjD+fx4o2dXuKfYmpsSCcf1ZZpA2a9x6hzNWg5WdVQG7FwdY/l8ySFZDzxb1IDZGW+1cpcYIzuYh3tQqmRQhInU0eszKL/Kj0/KvCqgseBfCtiSPntRrh0YsYfxJlBGfjBv9aKkTwfXV1x9oQV3pyw9DQoJGatVBo=

View File

@ -42,6 +42,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

@ -1 +1 @@
c4Xc2bgxDptIAkPoSkiiTxakb6Dh00Q8ZFDtIJ4GsaBC4mW4soE08f8ftX4Gcope7snM21uBL5h5R4CGi4JEgzL4Xw64w6uWvahIKLmYboXvvBt+aa7wSxmEYdMQ3qXnYqqINJ9YggD6XM5LTP2xuCSKfiwPVt6mQ8Kq4PS/iea/4Ve8jJguEBs3C+k6lR3b1gvZsTEbRpfsGT7Q+srHGi4WDVTpuht24W4GD1qjhCB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FDVVmY9T0qYEBJxCC1l1FVXPxf08ulf0i1yds7mXRIYw1lvoAycoDAulW8lYz0oFM=

View File

@ -44,6 +44,7 @@ if sp['ticket']: # type: ignore
fss = None
if sp['ticket_secure']: # type: ignore
theFile = sp['as_file']
# Open tunnel
fss = forward(remote=(sp['tunHost'], int(sp['tunPort'])), ticket=sp['ticket_secure'], timeout=sp['tunWait'], check_certificate=sp['tunChk']) # type: ignore

View File

@ -1 +1 @@
T/rWfvR8sW4KLGct+/gvX3gU7Et8a+k4Dh2R0pdWqqRPeGciduBHpQHS8NDcF8aaWGVONcXoqNtg/ZqL8c+/ghKtRjAKLT8XnLoPrtjn4oHvr+YI6xFoNCuVXj5ZtHbIQZK0WFhobweD0GEaNBnNYFS+BLelR4uXhS4JmQc6yc8gJ8JpEUCOlFQ2R1N+I8xMUtNl+GQEKDypcrgf4QczwOV+54QKdwRrwW38Ao7C+aJYFfieMNku0EtKnaCS4o6dLkurJgQg0BCCPXywD8zHzvVdlo04frLGmCEyKg78FSbfeOTitabEmEP+i0riCEMJ8Dp4RFPu9I3cbwD2wuogg4psv63pHHaBJYwNVPJHxpPE0TxKDcljsoHL0jFEnDfHbtWNf56rnzEXSZKwXOWiSKVMDXEkc/AceBrNSf9i5gWyRv8I6CxCMEU4mjoyzklaenAdAgUty4UONEHuPL/TAJAlmYUd082ER4luJbTk41sM6JedgwkgltebVOLVkzx1z/Q618KWyDCCkedVnD8qcgAZ3Prjln7XhYCD1u/c16mAp8K3Xi++7D5kiojAFhYcXmxANI5vaf/AFXeZX+kcJaeJD9iGdJKpR6TMtwjvIqPyON98eSW3DvnWbZ3j3g8xZub60x1aYXgLb+IuXIFnSFt/A5FeUT2yslqAB06V1W0=
IVIhkY9yqNTdG4AZlfklACy2g2GmQlTIfyeroN8urW+QfJD/oPg+MQ8qY95YKbQd2+s6FUMXj/qf8EpWJ8Je5SyuvW48nyDinEPhelQk0YF/A8Y2k+3v20wW5xgpBT2QYvLeM2QFC8PON/9HMhCOpyeJIqhDi0EopPbXfzGXbUBqHhIsD0t3uL2FdPGHCkexdTCqRjFTxPIG10ctrS73yWkLj407pVZumPeSpxYVTNK7FAX1N0mRZIZcEpp5c9BCzOPrgKCzoLPo6s5eg007B8W9StZBOrjnGYP763FJHlhrRBIzVkUTGQD2sX4WIfS8ZGzpT7YbTYDytNEAgNuOVN3vp8nugCNXSsyy02Q6Pr8/WAbAssW/Z/f/T1tpIPPMMHpb2Ufu5KRaSfFLbmuXgGdK1YEe9Z4FQnanjpie1jXuGGoTEVQDSwjOOCrvtqADFmBgu9IhJDNjr27Z3v6Bf0sUZVFfXkVwcQcuokZ1on3TD20aiQICX4XPC/lOxCKZiUS5WggpF/r9WBhkBsQUohVgr2R+zSvIK1mnv9+BvpTTV6cL/Htkxh79TF/BcSqtP3g/enjWGEkkFkfMRY3oO2+6ktRI3Bj6IfAYirR9y4IX8Ln7StIZFRVkAco+t/ckGl5WVK8NZDmQF63CLsrhgoT3RomxBa8XJkXPnQtxhss=

View File

@ -148,14 +148,12 @@ class TSPICETransport(BaseSpiceTransport):
validity=self.tunnelWait.num() + 60, # Ticket overtime
)
r = RemoteViewerFile(
con.get('address', ''),
con.get('port',''),
con.get('secure_port', ''),
con['ticket']['value'], # password
con.get('ca', self.serverCertificate.value.strip()),
con['cert_subject'],
fullscreen=self.fullScreen.isTrue(),
if con['secure_port']:
ticket_secure = TicketStore.create_for_tunnel(
userService=userService,
port=int(con['secure_port']),
host=con['address'],
validity=self.tunnelWait.num() + 60, # Ticket overtime
)
r = RemoteViewerFile(