luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6 4163/head
authorWilliam Fleurant <meshnet@protonmail.com>
Fri, 12 Jun 2020 05:54:33 +0000 (01:54 -0400)
committerWilliam Fleurant <meshnet@protonmail.com>
Fri, 12 Jun 2020 05:54:33 +0000 (01:54 -0400)
Signed-off-by: William Fleurant <meshnet@protonmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js

index a94cc6673f7a932d93b0bf33cce8c57b8f386f5b..1855ee6422f9ec53691cba6b04faae945d8e6366 100644 (file)
@@ -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);
        },