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

autoProxy seems to be true by default, which conflicts with the documentation #11055

Closed
1 of 2 tasks
tianze0926 opened this issue Jan 22, 2024 · 5 comments
Closed
1 of 2 tasks
Assignees
Labels
documentation request for documentation improvement network

Comments

@tianze0926
Copy link

tianze0926 commented Jan 22, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.3007]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-microsoft-standard-WSL2

Distro Version

Arch Linux

Other Software

No response

Repro Steps

In Windows, set http proxy in the settings and set networkingMode to mirrored in .wslconfig:

[wsl2]
networkingMode=mirrored

In WSL, echo $http_proxy returns the value set in Windows settings.

Expected Behavior

According to the documentation, autoProxy is false by default. Hence $http_proxy should not be set in WSL.

Actual Behavior

$http_proxy is set in WSL unless explicitly setting autoProxy to false in .wslconfig, which conflicts with the documentation.

Diagnostic Logs

No response

@chanpreetdhanjal
Copy link

Hi. Can you please collect networking logs by following the instructions below?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

@tianze0926
Copy link
Author

I’m skeptical about the usefulness of capturing packets. I think there are only two possibilities:

  1. WSL mistakenly sets $http_proxy.
  2. This behaviour is by design and the documentation didn't mention it.

@benhillis benhillis added the documentation request for documentation improvement label Jan 23, 2024
@benhillis
Copy link
Member

@craigloewen-msft - can you please update this documentation?

@J0F3
Copy link

J0F3 commented Feb 7, 2024

I experienced the same. autoProxy seems to be on by default despite the documentation which still says that the feature is disabled by default.

@benhillis @craigloewen-msft any news here?

@craigloewen-msft
Copy link
Member

Yes this is disabled by default in the latest WSL release, so no docs changes need to be made.
https://github.com/microsoft/WSL/releases/tag/2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation request for documentation improvement network
Projects
None yet
Development

No branches or pull requests

6 participants