nirvam's repos on GitHub
0 人关注
doraemon
Doraemon is a Prometheus based monitor system
Python · 0 人关注
F00950_generator
Go · 0 人关注
go-yo
Golang client for the Yo API
Python · 0 人关注
hackerrank
Hacker Rank Solutions
Python · 0 人关注
jde_user
Grab JDE online user count from Server Manager
Shell · 0 人关注
jobi.duckdns.org
jobi on Google Cloud
Python · 0 人关注
leetcode-solution
Solution for Leetcode
Python · 0 人关注
lykos
Werewolf, the popular detective/social party game (a theme of Mafia)
0 人关注
nirvam
Config files for my GitHub profile.
0 人关注
sql_exporter
Database agnostic SQL exporter for Prometheus
Nginx · 0 人关注
taiga-docker
Taiga project management platform for Docker
Python · 0 人关注
WereTraktor
WereTraktor - Online judge tool for "The Werewolves of Millers Hollow"
nirvam

nirvam

Never is often better than *right* now.
V2EX 第 55208 号会员,加入于 2014-02-02 09:46:22 +08:00
今日活跃度排名 9633
根据 nirvam 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
nirvam 最近回复了
WSL 有个比较讨厌的问题,是它的虚拟网卡的网段会变,导致无法通过固定的 IP 访问 Windows 宿主机。需要每次都 ip route 看一下,再改环境变量。

我采用的方案:
https://github.com/mike-barber/wsl-subnet-utility

Windows 中设置一个在系统启动时触发的计划任务,执行这个工具,把 WSL 的虚拟网关设置为 192.168.100.1 ,这样 WSL 里就可以固定代理地址:
export http_proxy=http://192.168.100.1:xxxx
export https_proxy=$http_proxy

记得 Windows 上的代理工具里,允许局域网内的访问。

另一个方案是通过读取 WSL 自动生成的 resolv.conf ,获取宿主机 IP
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   966 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 20:39 · PVG 04:39 · LAX 13:39 · JFK 16:39
Developed with CodeLauncher
♥ Do have faith in what you're doing.