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/dmsghttp public ip #1041

Merged
merged 5 commits into from
Jan 7, 2022
Merged

Fix/dmsghttp public ip #1041

merged 5 commits into from
Jan 7, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Dec 31, 2021

Did you run make format && make check?
yes

Fixes #skywire-services-494

Changes:

  • Updated module initialization
  • Added public IP to header of authhttp

How to test this PR:
Check #skywire-services-515

This commit moves the initilization on the transport module to be before the main module so that the stun module will start as soon as possible.
This commmit changes the verb from %w to %s in t.Errorf().
This commit adds the public IP of the client from the stun module to the request header of services using httpauth.
This commit fixes the nilpointer derefrence by change the data type of clientPublicIP from *string to string.
This commit fixes the module initialization during the visor startup.

The Transport module is initialized before the main module as a go routine since InitConcurrent() function blocks until all dependencis are initialized so as to not wait for the stun client to initialize.

Also the v.wgStunClient.Add(1) is noved from initStunClient() to NewVisor() to mitigate any issues.
@ersonp ersonp marked this pull request as ready for review January 3, 2022 11:50
@jdknives jdknives merged commit d998fd7 into skycoin:develop Jan 7, 2022
@ersonp ersonp deleted the fix/dmsghttp-public-ip 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.

2 participants