From f3bacd45ade4dcdbba41836e5eeb7fdda21b45bc Mon Sep 17 00:00:00 2001 From: Andy Chiang Date: Tue, 14 Oct 2025 02:02:11 +0700 Subject: [PATCH] luci-mod-status: fix ipv4 source ipv4 source in json is prefsrc not src Signed-off-by: Andy Chiang --- .../htdocs/luci-static/resources/view/status/routesj.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js index 1f70caf4ad..001dd7acf3 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js @@ -150,7 +150,7 @@ return view.extend({ E('span', { 'class': 'ifacebadge' }, [ net ? net : '(%s)'.format(rt.dev) ]), dest, rt?.gateway || '-', - rt?.src || rt?.from || '-', + rt?.prefsrc || rt?.from || '-', String(rt?.metric || '-'), rt?.table || 'main', rt?.protocol, -- 2.30.2