mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 04:09:40 +08:00
Disable SSL checking in debug mode
Allows inspecting web traffic during development CURA-7150
This commit is contained in:
parent
27902fe38f
commit
77590ad0e2
@ -15,6 +15,8 @@ import sys
|
|||||||
import Arcus # @UnusedImport
|
import Arcus # @UnusedImport
|
||||||
import Savitar # @UnusedImport
|
import Savitar # @UnusedImport
|
||||||
|
|
||||||
|
from PyQt5.QtNetwork import QSslConfiguration, QSslSocket
|
||||||
|
|
||||||
from UM.Platform import Platform
|
from UM.Platform import Platform
|
||||||
from cura import ApplicationMetadata
|
from cura import ApplicationMetadata
|
||||||
from cura.ApplicationMetadata import CuraAppName
|
from cura.ApplicationMetadata import CuraAppName
|
||||||
@ -209,5 +211,10 @@ if Platform.isLinux() and getattr(sys, "frozen", False):
|
|||||||
import trimesh.exchange.load
|
import trimesh.exchange.load
|
||||||
os.environ["LD_LIBRARY_PATH"] = old_env
|
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 = CuraApplication()
|
||||||
app.run()
|
app.run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user