summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2020-10-14 13:12:03 +0200
committerMartin Schiller <ms@dev.tdt.de>2020-10-14 13:12:03 +0200
commit0f1a793aeaed7159a6536a3aee2404d602038921 (patch)
treef102532d58a23e09acd41de293414a89de705d9b
parent678c0b2d5ba77092ca4c422b6a3c3e3eefe86b01 (diff)
luci-mod-network: diagnostics.js: don't pass IP version flag to ping6
Passing "-6" to ping6 from the iputils package will lead to the following error: "ping6: only one -4 or -6 option may be specified" It does not make sense either. Fixes: 547776327a71 ("luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6") Signed-off-by: Martin Schiller <ms@dev.tdt.de>
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js
index 1855ee6422..f6ea1a1cb6 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js
@@ -28,7 +28,7 @@ return view.extend({
handlePing: function(ev, cmd) {
var exec = cmd || 'ping',
addr = ev.currentTarget.parentNode.previousSibling.value,
- args = (exec == 'ping') ? [ '-4', '-c', '5', '-W', '1', addr ] : [ '-6', '-c', '5', addr ];
+ args = (exec == 'ping') ? [ '-4', '-c', '5', '-W', '1', addr ] : [ '-c', '5', addr ];
return this.handleCommand(exec, args);
},