proxy: fix plain traceroute not executed

This commit is contained in:
Lan Tian
2021-02-28 23:09:11 +08:00
parent f49f8bac5e
commit 3f612d2e76

View File

@@ -51,6 +51,7 @@ func tracerouteHandler(httpW http.ResponseWriter, httpR *http.Request) {
result, errString = tracerouteTryExecute(
[]string{
"traceroute",
"traceroute",
},
[][]string{
append([]string{"-q1", "-w1"}, args...),
@@ -62,6 +63,7 @@ func tracerouteHandler(httpW http.ResponseWriter, httpR *http.Request) {
[]string{
"traceroute",
"traceroute",
"traceroute",
},
[][]string{
append([]string{"-q1", "-N32", "-w1"}, args...),