Skip to content
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

ipn: move Options.ServerURL into Prefs. #80

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

danderson
Copy link
Member

We can't rely on a frontend to provide a control
server URL for tailscaled, so this naturally belongs
in server-persisted state.

Signed-off-by: David Anderson dave@natulte.net

@danderson danderson force-pushed the danderson/server-url branch 2 times, most recently from 480efc0 to 7683323 Compare February 19, 2020 05:21
We can't rely on a frontend to provide a control
server URL, so this naturally belongs in server-persisted
state.

Signed-off-by: David Anderson <dave@natulte.net>
Copy link
Member

@crawshaw crawshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside: I was thinking we might soon have to add another URL for v2 of the protocol, but it occurs to me that in our last meeting we agreed to start over http2, which we are already talking to login.tailscale.com. So we can implement it by adding handlers on this one connection.

@danderson
Copy link
Member Author

In general, I feel a bit unsafe about our current handling of client-side state - specifically, introducing new values that need some value for ipn to be usable. I bolted that into prefs.go for this change, but I don't think it's a sustainably maintainable thing if we do this often.

@danderson danderson merged commit cf1e386 into master Feb 19, 2020
@danderson danderson deleted the danderson/server-url branch February 19, 2020 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants