Skip to content

[WSL2] cidata scripts incorrectly set proxy variables #3268

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

Open
arixmkii opened this issue Feb 22, 2025 · 1 comment
Open

[WSL2] cidata scripts incorrectly set proxy variables #3268

arixmkii opened this issue Feb 22, 2025 · 1 comment

Comments

@arixmkii
Copy link
Contributor

Description

When proxy is set to localhost like

set ftp_proxy=http://localhost:2121

During machine creation this will be replaced with a predefined SlirpGateway, which is not a thing for WSL2 template

[lima@ ~]$ ip route
default via 172.31.176.1 dev eth0 proto kernel
172.31.176.0/20 dev eth0 proto kernel scope link src 172.31.181.242
[lima@ ~]$ env | grep -i proxy
ftp_proxy=http://192.168.5.2:2121
FTP_PROXY=http://192.168.5.2:2121

This is probably result in some programs failing to work and also breaks integration test.

@arixmkii
Copy link
Contributor Author

This should also take into account mirrored networking mode, where localhost would be invalid gateway as VM and host share the same network address.

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

No branches or pull requests

2 participants