Created
August 17, 2024 14:24
-
-
Save SiqingYu/a002cbbd8c2667819ab9259822626fdc to your computer and use it in GitHub Desktop.
WSL 2 Clash config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://learn.microsoft.com/en-us/windows/wsl/networking | |
# %UserProfile%/.wslconfig | |
[wsl2] | |
autoproxy=false | |
# ~/.zshrc | |
export hostip=$(ip route show | grep -i default | awk '{ print $3}') | |
export https_proxy="http://${hostip}:7890" | |
export http_proxy="http://${hostip}:7890" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment