mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
上一个commit测试成功. 修改windows的tun的自动路由以支持bindToDevice
This commit is contained in:
@@ -85,6 +85,8 @@ func init() {
|
||||
|
||||
}
|
||||
|
||||
strs = append(strs, fmt.Sprintf("route add 0.0.0.0 mask 0.0.0.0 %s metric 6", rememberedRouterIP))
|
||||
|
||||
strs = append(strs, fmt.Sprintf("route add 0.0.0.0 mask 0.0.0.0 %s metric 6", tunGateway))
|
||||
|
||||
if manualRoute {
|
||||
@@ -114,6 +116,7 @@ func init() {
|
||||
|
||||
strs := []string{
|
||||
"route delete 0.0.0.0 mask 0.0.0.0 " + tunGateway,
|
||||
"route delete 0.0.0.0 mask 0.0.0.0 " + rememberedRouterIP,
|
||||
"route add 0.0.0.0 mask 0.0.0.0 " + rememberedRouterIP + " metric 50",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user