Skip to content

Commit

Permalink
change permFlag casts to match initailzer types
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Sep 26, 2023
1 parent 84d192a commit 018edd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Network/ZitiTunnelDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ class ZitiTunnelDelegate: NSObject, CZiti.ZitiTunnelProvider {
}

private func canDial(_ eSvc:CZiti.ZitiService) -> Bool {
return (Int(eSvc.permFlags ?? 0x0) & Ziti.ZITI_CAN_DIAL != 0) && (eSvc.interceptConfigV1 != nil || eSvc.tunnelClientConfigV1 != nil)
return (UInt32(eSvc.permFlags ?? 0x0) & Ziti.ZITI_CAN_DIAL != 0) && (eSvc.interceptConfigV1 != nil || eSvc.tunnelClientConfigV1 != nil)
}

private func canBind(_ eSvc:CZiti.ZitiService) -> Bool {
return (Int(eSvc.permFlags ?? 0x0) & Ziti.ZITI_CAN_BIND != 0) && (eSvc.hostConfigV1 != nil || eSvc.tunnelServerConfigV1 != nil)
return (UInt32(eSvc.permFlags ?? 0x0) & Ziti.ZITI_CAN_BIND != 0) && (eSvc.hostConfigV1 != nil || eSvc.tunnelServerConfigV1 != nil)
}

private func evalPostureCheckStatus(_ tzid:ZitiIdentity, _ zSvc:ZitiService) {
Expand Down

0 comments on commit 018edd0

Please sign in to comment.