Skip to content

WSL2使用宿主机代理访问网络 | 希落凛 #16

@Shirolin

Description

@Shirolin

https://shirolin.github.io/posts/e41dabd5/

系统版本:Windows 11 22H2※ 该方法在更低版本的Windows系统上未经测试,可能无法生效。 背景WSL2默认是无法访问宿主机的代理的,如果需要使用代理访问网络,需要进行一些配置。 问题之前通过在WSL2中设置代理的方法,如下: 123export http_proxy=http://${宿主机IP}:${端口}export https_proxy=http://${宿主机IP}:$

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions