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

client: allow rerun init for gateway config #1353

Merged
merged 10 commits into from
Jun 16, 2022

Conversation

octol
Copy link
Contributor

@octol octol commented Jun 13, 2022

Description

Closes: #2017

Currently re-running init fails for the native and socks5 client. The gateway registration is skipped, but that also means the gateway related fields in the config is never set so when the config file is written the previously set gateway fields are erased.

This PR changes so that rerunning init will reuse the gateway config fields, and adds another flag --force-register-gateway that will trigger gateway registration regardless if the config file and associated keys already exists or not.

Checklist:

  • SOCKS5 client
  • Native client
  • added a changelog entry to CHANGELOG.md

@octol octol marked this pull request as ready for review June 14, 2022 02:34
Copy link
Contributor

@jstuczyn jstuczyn left a comment

Choose a reason for hiding this comment

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

lgtm

clients/client-core/src/config/mod.rs Outdated Show resolved Hide resolved
@octol octol merged commit 5b715ac into develop Jun 16, 2022
@octol octol deleted the jon/feat/allow-rerun-init-for-gateway-config branch June 16, 2022 10:24
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.

Fix re-running init for client/socks5-client
2 participants