diff options
-rwxr-xr-x | cura_app.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cura_app.py b/cura_app.py index 38d1149080..1f0c4a0743 100755 --- a/cura_app.py +++ b/cura_app.py @@ -15,6 +15,8 @@ import sys import Arcus # @UnusedImport import Savitar # @UnusedImport +from PyQt5.QtNetwork import QSslConfiguration, QSslSocket + from UM.Platform import Platform from cura import ApplicationMetadata from cura.ApplicationMetadata import CuraAppName @@ -209,5 +211,10 @@ if Platform.isLinux() and getattr(sys, "frozen", False): import trimesh.exchange.load os.environ["LD_LIBRARY_PATH"] = old_env +if ApplicationMetadata.CuraDebugMode: + ssl_conf = QSslConfiguration.defaultConfiguration() + ssl_conf.setPeerVerifyMode(QSslSocket.VerifyNone) + QSslConfiguration.setDefaultConfiguration(ssl_conf) + app = CuraApplication() app.run() |