From 547776327a7174bb5d2fada59e2a4782eedd9b96 Mon Sep 17 00:00:00 2001 From: William Fleurant Date: Fri, 12 Jun 2020 01:54:33 -0400 Subject: [PATCH] luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6 Signed-off-by: William Fleurant --- .../htdocs/luci-static/resources/view/network/diagnostics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }, -- 2.25.1