From: William Fleurant Date: Fri, 12 Jun 2020 05:54:33 +0000 (-0400) Subject: luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=547776327a7174bb5d2fada59e2a4782eedd9b96;p=oweals%2Fluci.git luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6 Signed-off-by: William Fleurant --- 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); },