Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
docs(2): add proxy need alow lan tips
Browse files Browse the repository at this point in the history
  • Loading branch information
clark-cui committed Dec 29, 2021
1 parent 5683722 commit 9c864bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/2-cli/2-3-cli-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ $ git config --global gpg.program /usr/bin/gpg

上面介绍的方法仅能对 Git 开启代理访问功能,如果我们希望 WSL 中的工具均能经由代理,那么需要通过环境变量 `http_proxy``https_proxy` 进行配置。

> 注意:本机的代理需要开启 `Allow LAN`,否则 WSL2 中的代理会被 refuse。
### 基础配置

使用下面的命令将当前 session(会话)的代理进行配置:
Expand Down

0 comments on commit 9c864bf

Please sign in to comment.