We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d1a97f commit cba920eCopy full SHA for cba920e
lib/Ziti.swift
@@ -979,7 +979,10 @@ import CZitiPrivate
979
980
// update ourself
981
if event.type == ZitiEvent.EventType.ConfigEvent {
982
- let cfgEvent = event.configEvent!
+ guard let cfgEvent = event.configEvent else {
983
+ log.warn( "invalid config event", function:"onEvent()")
984
+ return
985
+ }
986
if !cfgEvent.controllerUrl.isEmpty { mySelf.id.ztAPI = cfgEvent.controllerUrl }
987
if !cfgEvent.controllers.isEmpty { mySelf.id.ztAPIs = cfgEvent.controllers }
988
if !cfgEvent.cert.isEmpty {
0 commit comments