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

Improve VPN and Proxy cli command #1722

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

mrpalide
Copy link
Contributor

Did you run make format && make check? Yes

Fixes #1714

Changes:

  • add --timeout (-t) flag to proxy cli command as skywire-cli proxy start --timeout 30
  • add --timeout (-t) flag to vpn cli command as skywire-cli vpn start -t 30

Note: Default value of timeout is 20 second. If you pass zero value as skywire-cli proxy start -t 0 then no timeout be there, for both vpn and proxy command.

How to test this PR:

  • build
  • trying to start proxy/vpn by cli command with small value like 2 as skywire-cli proxy start --pk 0326978f5a53aff537dbb47fed58b1f123af3b00132d365f1309a14db4168dcff7 -t 2, it should stop after two second. (Note: key here is dummy, not valid proxy server)

@0pcom
Copy link
Collaborator

0pcom commented Jan 30, 2024

should we perhaps make the default timeout 0 / no timeout?

Copy link
Collaborator

@0pcom 0pcom left a comment

Choose a reason for hiding this comment

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

looks good

@0pcom 0pcom merged commit c2d1025 into skycoin:develop Jan 30, 2024
3 checks passed
@mrpalide mrpalide deleted the feat/timeout-to-vpn-proxy-start branch March 26, 2024 13:50
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.

2 participants