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

Fix StartVPNCient logic #1366

Merged
merged 2 commits into from
Sep 19, 2022
Merged

Fix StartVPNCient logic #1366

merged 2 commits into from
Sep 19, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Sep 19, 2022

Did you run make format && make check?

Fixes #1359 (only fixes the logic in StartVPNCient)

Changes:

  • Updated StartVPNCient

How to test this PR:

  1. Start vpn-server
  2. Start vpn-client
  3. From the machine with vpn-client run skywire-cli vpn start <server-pk> cnad see if it works
  4. Change the order of apps in the visor-config.json and try agan

This commit fixes the logic in StartVPNClient where we assumed that the first app in the app list will always be vpn-client and based the logic around it. It would fail if the vpn-client wasn't the first app.

Now this has been fixed and we check the whole list of apps to see if vpn-client is available and start it only if it is.
@mrpalide mrpalide merged commit 1ed2de1 into skycoin:develop Sep 19, 2022
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