-
Notifications
You must be signed in to change notification settings - Fork 2
fix: start coder connect on launch after SE is installed #113
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. |
deinit { | ||
NotificationCenter.default.removeObserver(self) | ||
} | ||
|
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.
Drive-by fix: this was on the wrong class, though that wasn't causing any issues.
try Mock( | ||
url: url.appendingPathComponent("/api/v2/users/me"), | ||
statusCode: 200, | ||
data: [.get: Client.encoder.encode(User(id: UUID(), username: "username"))] | ||
).register() | ||
|
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.
Drive-by fix: We need to mock this route as the token is validated before the server version.
This is a fix for #108. Previously we would start the VPN immediately on launch if the config option was true. This starting of the VPN raced with any concurrent upgrades of the network extension, causing the VPN to be started with a VPN config belonging to the older network extension, and producing a consistent error message:

Instead, we should only start the VPN once we know that the system extension and VPN configuration are installed.