Merge pull request #4515 from TDT-AG/pr/20201014-diag-ping6

luci-mod-network: diagnostics.js: don't pass IP version flag to ping6
pull/5691/head
Jo-Philipp Wich 2022-02-18 21:20:49 +01:00 committed by GitHub
commit 8890111784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ return view.extend({
handlePing: function(ev, cmd) {
var exec = cmd || 'ping',
addr = ev.currentTarget.parentNode.previousSibling.value,
args = (exec == 'ping') ? [ '-4', '-c', '5', '-W', '1', addr ] : [ '-6', '-c', '5', addr ];
args = (exec == 'ping') ? [ '-4', '-c', '5', '-W', '1', addr ] : [ '-c', '5', addr ];
return this.handleCommand(exec, args);
},