From 6293af57aebc7c5bd537f749fd21110b2ce3f675 Mon Sep 17 00:00:00 2001 From: e1732a364fed <75717694+e1732a364fed@users.noreply.github.com> Date: Sat, 1 Jan 2000 00:00:00 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=B8=80=E4=B8=AAcommit=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=88=90=E5=8A=9F.=20=E4=BF=AE=E6=94=B9windows?= =?UTF-8?q?=E7=9A=84tun=E7=9A=84=E8=87=AA=E5=8A=A8=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81bindToDevice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy/tun/route_windows.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/tun/route_windows.go b/proxy/tun/route_windows.go index ac1e74a..b41bf2a 100644 --- a/proxy/tun/route_windows.go +++ b/proxy/tun/route_windows.go @@ -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", }