- Notifications
You must be signed in to change notification settings - Fork3
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ethanndickson commentedJan 31, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This stack of pull requests is managed byGraphite. Learn more aboutstacking. |
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 fromcoder/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), souuid_t
is just a tuple of 16 u8s.
Also, the proposal to add one includes calling that new type a Vectorhttps://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/stopcompletionHandler(err)
3470cf0
to156f4e0
Compare10c2109
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Closes#5.