summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-06-12 08:41:59 +0200
committerGitHub <noreply@github.com>2020-06-12 08:41:59 +0200
commitea5e6e17a2f4638b05f2e294140ef5bdc894369c (patch)
treeaed7e61215f24c8dd15bba1a52a6b04b3aba6eab
parent080d6423efbcf934469354e4af08c6fa3d101b67 (diff)
parent547776327a7174bb5d2fada59e2a4782eedd9b96 (diff)
Merge pull request #4163 from wfleurant/diagnostic-ping
luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6
-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 a94cc6673..1855ee642 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') ? [ '-c', '5', '-W', '1', addr ] : [ '-c', '5', addr ];
+ args = (exec == 'ping') ? [ '-4', '-c', '5', '-W', '1', addr ] : [ '-6', '-c', '5', addr ];
return this.handleCommand(exec, args);
},