1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

added exception logging on getTransportData and forced TLS to 1.3 on UDS tunnel

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

View File

@ -178,6 +178,7 @@ class UDSClient(QtWidgets.QMainWindow):
# Retry operation in ten seconds
QtCore.QTimer.singleShot(10000, self.getTransportData)
except Exception as e:
logger.exception('Error getting transport data')
self.showError(e)
def start(self):

View File

@ -120,6 +120,8 @@ class ForwardServer(socketserver.ThreadingTCPServer):
# Do not "recompress" data, use only "base protocol" compression
context.options |= ssl.OP_NO_COMPRESSION
context.minimum_version = ssl.TLSVersion.TLSv1_3
if tools.getCaCertsFile() is not None:
context.load_verify_locations(
tools.getCaCertsFile()