-
Notifications
You must be signed in to change notification settings - Fork 887
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
42434e7
to
1e05884
Compare
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 .
I think I'm missing the higher level context: why do we need to send a |
Oh, I should've mentioned a nil router Config is supplied as a way of sending a shutdown - that the config should be reset. |
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... |
Yeah, that makes sense to me. |
15e2122
to
45ef86b
Compare
Previously, a
nil
Router 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.