Skip to content

Instantly share code, notes, and snippets.

@SiqingYu
Created August 17, 2024 14:24
Show Gist options
  • Save SiqingYu/a002cbbd8c2667819ab9259822626fdc to your computer and use it in GitHub Desktop.
Save SiqingYu/a002cbbd8c2667819ab9259822626fdc to your computer and use it in GitHub Desktop.
WSL 2 Clash config
# 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