-
Notifications
You must be signed in to change notification settings - Fork 3
feat: pass agent updates to UI #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coder Desktop/VPNLib/vpn.proto
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated from coder/coder
PRODUCT_BUNDLE_IDENTIFIER: com.coder.Coder-Desktop.CoderSDKTests | ||
|
||
VPNXPC: | ||
type: framework |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we import VPNLib into the app for the peer update protobuf type, we might as well just put the contents of this framework there.
guard uuidData.count == 16 else { | ||
return nil | ||
} | ||
var uuid: uuid_t = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very funny: there's no fixed size arrays in Swift (probably cause of objc), so uuid_t
is just a tuple of 16 u8s.
Also, the proposal to add one includes calling that new type a Vector https://forums.swift.org/t/second-review-se-0453-vector-a-fixed-size-array/76412/20
logger.error("network extension reported error: \(error)") | ||
tunnelState = .failed(.internalError(error.localizedDescription)) | ||
extension CoderVPNService { | ||
@objc private func vpnDidUpdate(_ notification: Notification) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
macOS can tell us when the Network Extension changes state, including if there was an error that caused it to disconnect, e.g. NE crashes, ptp.cancelTunnelWithError
, start/stop completionHandler(err)
3470cf0
to
156f4e0
Compare
Closes #5.