summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
authorWilliam Fleurant <meshnet@protonmail.com>2020-06-12 01:54:33 -0400
committerWilliam Fleurant <meshnet@protonmail.com>2020-06-12 01:54:33 -0400
commit547776327a7174bb5d2fada59e2a4782eedd9b96 (patch)
tree1136ea60faa2b4746105d6f785afb6818edbdc2a /modules/luci-mod-network/htdocs/luci-static
parent7433b6b7b002d2864a3ef440a96f20c702941db5 (diff)
luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6
Signed-off-by: William Fleurant <meshnet@protonmail.com>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-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 a94cc6673f..1855ee6422 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);
},