luci-mod-network: enforce IPv4 mode for traceroute call
Recent busybox traceroute applet versions support both IPv4 and IPv6 and default to IPv6 when running a route trace to an IPv6 enabled target host. Pass the `-4` flag to enforce IPv4 mode in this case. Fixes: #5155 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
81c26a8eb3
commit
c4f4294615
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ return view.extend({
|
|||
handleTraceroute: function(ev, cmd) {
|
||||
var exec = cmd || 'traceroute',
|
||||
addr = ev.currentTarget.parentNode.previousSibling.value,
|
||||
args = (exec == 'traceroute') ? [ '-q', '1', '-w', '1', '-n', addr ] : [ '-q', '1', '-w', '2', '-n', addr ];
|
||||
args = (exec == 'traceroute') ? [ '-4', '-q', '1', '-w', '1', '-n', addr ] : [ '-q', '1', '-w', '2', '-n', addr ];
|
||||
|
||||
return this.handleCommand(exec, args);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue