-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
feat: add --disable-auto-connectflag to prevent auto connection after daemon service start (fixes #444, fixes #1382) #1161
feat: add --disable-auto-connectflag to prevent auto connection after daemon service start (fixes #444, fixes #1382) #1161
Conversation
By the way, I've taken a look at the service package and it seems like there's currently no way to use that to enable / disable the service using it |
73ae9e0
to
88747e3
Compare
To be honest, I kind of forgot this PR existed; I did completely revamp how I did this without ever committing it. With these latest changes, the client will just not connect when the daemon is started unless this is changed via the config. However, it still defaults to connecting by default so this PR is backwards compatible. This functionality can be toggled with the |
Hello @oskardotglobal thanks for the awesome contribution. I have some remarks as we see this feature being released for new and existing users: Ideally, all clients should autostart from the beginning, the majority of users are fine with that and offer an easy way to always be connected. With that in mind, we should update the configuration option introduced in the PR because the default value for bool in Go is Other note, the Let us know what do you think. |
Sure, I'll make the proposed naming changes. |
I've made the changes and moved the flag to the |
Thanks, @oskardotglobal; I've added one more note about where to add the set the flag. |
Thanks @oskardotglobal we will review it today and if tests goes ok it will be part of the 0.26 release |
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.
Validated the flag and functionality in the configuration file changes and it is working.
We need to update it so that the change goes as part of the CLI request to the daemon process. If you are not sure about this change, let us know, we can help you out.
Thanks, @oskardotglobal, for the awesome contribution! |
To be honest, this has been bothering me ever since I started using netbird ;), but I'm still happy to help |
… daemon service start (fixes netbirdio#444, fixes netbirdio#1382) (netbirdio#1161) With these changes, the command up supports the flag --disable-auto-connect that allows users to disable auto connection on the client after a computer restart or when the daemon restarts.
Describe your changes
With these changes, the command up supports the flag
--disable-auto-connect
that allows users to disable auto connection on the client after a computer restart or when the daemon restarts.To disable auto-connect:
To enable auto-connect:
Issue ticket number and link
#444
#1382
Checklist