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 nil pointer in vpn client #1015

Merged
merged 4 commits into from
Nov 30, 2021
Merged

Fix nil pointer in vpn client #1015

merged 4 commits into from
Nov 30, 2021

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Nov 29, 2021

Did you run make format && make check?
yes

Fixes #1014

Changes:

  • Fix nil pointer error
  • Fix dmsghttp module startup with non dmsg urls
  • Exclude dmsghttp-config.json from gitignore

How to test this PR:
On test env

  1. Run ./skywire-cli config gen -irt
  2. Run sudo ./skywire-visor -c skywire-config.json
  3. See if visor starts up properly

And

  1. Run ./skywire-cli config gen -dirt
  2. Run sudo ./skywire-visor -c skywire-config.json
  3. Open hypervisor and Connect to a VPN server
  4. See if everything is running well

This commit adds the vpn servers of the dmsg-direct client to the vpnEnvMaker. For that the dmsgDC is added to the Visor struct.
This commit fixes the nil pointer error by adding the dmsg url check in ParseIP().
Copy link
Contributor

@mrpalide mrpalide left a comment

Choose a reason for hiding this comment

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

Code clear and work as well as.

@jdknives jdknives merged commit b2dfd21 into skycoin:develop Nov 30, 2021
@ersonp ersonp deleted the fix/dmsghttp-vpn-client branch April 11, 2022 15: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.

3 participants