Skip to content

Commit

Permalink
add ca bundle property
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Oct 18, 2023
1 parent c461ad7 commit 2d7a556
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ZitiTunnelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,20 @@ import CZitiPrivate
/// New controller address
public var newControllerAddress:String = ""

/// New ca bundle
public var newCaBundle = ""

init(_ ziti:Ziti, _ evt:UnsafePointer<api_event>) {
super.init(ziti)
self.newControllerAddress = toStr(evt.pointee.new_ctrl_address)
self.newCaBundle = toStr(evt.pointee.new_ca_bundle)
}

/// Debug description
/// - returns: String containing debug description of this event
public override var debugDescription: String {
return super.debugDescription + "\n" +
" newControllerAddress: \(newControllerAddress)"
" newControllerAddress: \(newControllerAddress)\n" +
" newCaBundle: \(newCaBundle)"
}
}

0 comments on commit 2d7a556

Please sign in to comment.