Stop tracing 255 hops

This commit is contained in:
Lan Tian
2020-04-13 01:54:46 +08:00
parent e8a58e0936
commit 89fe931abe

View File

@@ -96,8 +96,8 @@ func tracerouteRealHandler(useIPv6 bool, httpW http.ResponseWriter, httpR *http.
"busybox",
},
[][]string{
{"-6", "-q1", "-N32", "-w1", "-m255", query},
{"-4", "-q1", "-N32", "-w1", "-m255", query},
{"-6", "-q1", "-N32", "-w1", query},
{"-4", "-q1", "-N32", "-w1", query},
{"traceroute", "-6", "-q1", "-w1", query},
{"traceroute", "-4", "-q1", "-w1", query},
},
@@ -111,8 +111,8 @@ func tracerouteRealHandler(useIPv6 bool, httpW http.ResponseWriter, httpR *http.
"busybox",
},
[][]string{
{"-4", "-q1", "-N32", "-w1", "-m255", query},
{"-6", "-q1", "-N32", "-w1", "-m255", query},
{"-4", "-q1", "-N32", "-w1", query},
{"-6", "-q1", "-N32", "-w1", query},
{"traceroute", "-4", "-q1", "-w1", query},
{"traceroute", "-6", "-q1", "-w1", query},
},