Merge pull request #4163 from wfleurant/diagnostic-ping
luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6
This commit is contained in:
commit
ea5e6e17a2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue