侧边栏壁纸
博主头像
流殃博主等级

用微笑面对生活

  • 累计撰写 176 篇文章
  • 累计创建 43 个标签
  • 累计收到 2 条评论

目 录CONTENT

文章目录

wsl2开启clash代理

流殃
2023-02-20 / 0 评论 / 0 点赞 / 126 阅读 / 145 字 / 正在检测是否收录...

1. 开启局域网

image-1676855346479

2. 查看wsl2 ip地址

image-1676855393787
image-1676855404351

3. wsl2 进行设置

直接设置

export https_proxy="http://172.22.64.1:1080"
export http_proxy="http://172.22.64.1:1080"
export all_proxy="sock5://172.22.64.1:1080"
export ALL_PROXY="sock5://172.22.64.1:1080"

别名设置

alias setp='export https_proxy="http://172.22.64.1:1080";export http_proxy="http://172.22.64.1:1080";export all_proxy="socks5://172.22.64.1:1080";export ALL_PROXY="socks5://172.22.64.1:1080";'
alias unsetp='unset https_proxy; unset http_proxy; unset all_proxy; unset ALL_PROXY;'
  • setp 开启代理
  • unsetp 关闭代理
0

评论区