luci-mod-network: enforce IPv4 mode for traceroute call
authorJo-Philipp Wich <jo@mein.io>
Wed, 30 Jun 2021 15:21:50 +0000 (17:21 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 1 Jul 2021 19:15:15 +0000 (21:15 +0200)
commit49aa9c61db21541db0aac1c9dbbe654d866d97f2
tree5587e42ad54c0f3a81d82ba817216c13803130d1
parent165e411cd425b325e66fa805f98129f1ef21378f
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>
(cherry picked from commit c4f429461545d1401429e7ba133f24a55d1015b6)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js