Skip to content

Set correct MTU size for windows - #3157

Merged
soffokl merged 2 commits into
masterfrom
fix-windows-mtu
Mar 4, 2021
Merged

Set correct MTU size for windows#3157
soffokl merged 2 commits into
masterfrom
fix-windows-mtu

Conversation

@soffokl

@soffokl soffokl commented Mar 4, 2021

Copy link
Copy Markdown
Member

Close #3138

wintun, err := tun.CreateTUN(interfaceName, 0)
wintun, err := tun.CreateTUN(interfaceName, device.DefaultMTU)
if err != nil {
return nil, interfaceName, fmt.Errorf("could not create Wintun tunnel: %w", err)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We are passing interfaceName and then returing that interfaceName, wtf?

@tadaskay tadaskay Mar 4, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you look at the darwin implementation of this, you will notice that the requested interface name and resulting name might be different, e.g.: utun -> utun6

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #3157 (91525f8) into master (75cd43d) will decrease coverage by 0.44%.
The diff coverage is 25.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3157      +/-   ##
==========================================
- Coverage   44.54%   44.09%   -0.45%     
==========================================
  Files         305      305              
  Lines       13420    13493      +73     
==========================================
- Hits         5978     5950      -28     
- Misses       6737     6842     +105     
+ Partials      705      701       -4     
Impacted Files Coverage Δ
config/flags_node.go 10.37% <0.00%> (-0.20%) ⬇️
config/flags_payments.go 0.00% <ø> (ø)
consumer/bandwidth/tracker.go 86.66% <ø> (ø)
core/connection/connectionstate/event.go 0.00% <ø> (ø)
core/ip/fallbacks.go 0.00% <0.00%> (ø)
core/quality/morqa_transport.go 7.05% <0.00%> (-0.19%) ⬇️
core/quality/sender.go 15.56% <0.00%> (-0.19%) ⬇️
identity/registry/registry_contract.go 0.00% <0.00%> (ø)
mobile/mysterium/entrypoint.go 0.00% <0.00%> (ø)
nat/service_iptables.go 0.00% <0.00%> (ø)
... and 20 more

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 8f529aa...91525f8. Read the comment docs.

@soffokl
soffokl merged commit ce6cd41 into master Mar 4, 2021
@soffokl
soffokl deleted the fix-windows-mtu branch March 4, 2021 07:13
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.

MysteriumVPN can't open search engine duckduckgo.com on Windows

4 participants