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 new TTL based NAT hole punching for mobile #1788

Merged
merged 2 commits into from Feb 28, 2020
Merged

Conversation

soffokl
Copy link
Member

@soffokl soffokl commented Feb 27, 2020

No description provided.

@@ -35,6 +34,8 @@ import (
"github.com/rs/zerolog/log"
)

const natPunchingMaxTTL = 10
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to change it to more clear name like natPunchingPortsLen etc. In this context TTL is a bit confusing with IP packets TTL.

Copy link
Member Author

Choose a reason for hiding this comment

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

The number of ports is needed to test all TTL values up to the natPunchingMaxTTL.

@codecov-io
Copy link

Codecov Report

Merging #1788 into master will increase coverage by <.01%.
The diff coverage is 11.76%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1788      +/-   ##
==========================================
+ Coverage   46.81%   46.82%   +<.01%     
==========================================
  Files         281      281              
  Lines       11565    11574       +9     
==========================================
+ Hits         5414     5419       +5     
- Misses       5726     5731       +5     
+ Partials      425      424       -1
Impacted Files Coverage Δ
mobile/mysterium/openvpn_connection_setup.go 0% <0%> (ø) ⬆️
mobile/mysterium/wireguard_connection_setup.go 31.87% <0%> (ø) ⬆️
services/openvpn/client_config.go 0% <0%> (ø) ⬆️
services/openvpn/config_validator.go 77.77% <100%> (ø) ⬆️
core/discovery/discovery.go 65.54% <0%> (-0.85%) ⬇️
session/pingpong/invoice_payer.go 80.85% <0%> (+1.41%) ⬆️
tequilapi/sse/sse.go 71.11% <0%> (+2.22%) ⬆️
communication/nats/dialog/dialog_waiter.go 88.73% <0%> (+2.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33371f0...348fbde. Read the comment docs.

@soffokl soffokl merged commit 4690a7e into master Feb 28, 2020
@soffokl soffokl deleted the fix/mobile-nat-punching branch February 28, 2020 02:47
@soffokl soffokl restored the fix/mobile-nat-punching branch February 28, 2020 05:52
@soffokl soffokl deleted the fix/mobile-nat-punching branch February 28, 2020 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants