- Notifications
You must be signed in to change notification settings - Fork1.1k
fix(vpn): handle sending nil router config#16267
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 27, 2025
42434e7 to1e05884CompareUh oh!
There was an error while loading.Please reload this page.
johnstcn left a comment
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.
This change looks OK to me, but I'm by no means an expert on this part of the code. Deferring approval to@spikecurtis .
Uh oh!
There was an error while loading.Please reload this page.
spikecurtis commentedJan 27, 2025
I think I'm missing the higher level context: why do we need to send a |
ethanndickson commentedJan 27, 2025
Oh, I should've mentioned a nil router Config is supplied as a way of sending a shutdown - that the config should be reset. |
ethanndickson commentedJan 27, 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.
Truth be told, I don't think our macOS implementation needs to actually do any cleanup (shutting down the VPN should be sufficient), whilst the Tailscale one does - so maybe we just don't send anything... |
spikecurtis commentedJan 28, 2025
Yeah, that makes sense to me. |
15e2122 to45ef86bCompareab92306 intomainUh oh!
There was an error while loading.Please reload this page.

Uh oh!
There was an error while loading.Please reload this page.
Previously, a
nilRouter config would cause a panic in the dylib. Normally, a nil Router config would indicate a shutdown of the service, and that settings should be reset. However, for Coder Desktop macOS the network configuration will be reset by the disconnecting of the system VPN, so we'll instead do nothing.