Allow long traces for powerful traceroute binaries

This commit is contained in:
Lan Tian 2020-04-09 23:33:24 +08:00
parent 72f7d02948
commit 76e8e35e81
No known key found for this signature in database
GPG Key ID: 27F31700E751EC22

View File

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