]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
traffic.cgi: Do not use hard-coded red interface name
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 7 Mar 2023 11:53:49 +0000 (12:53 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 11 Mar 2023 16:29:43 +0000 (16:29 +0000)
commit44ea49fa75f097b21c947d0a9b4438d3cdd4d967
tree511b2c53688be7c70ad57d321f56b5a6f4cde1ab
parent9eef0e16c1819c83f24bc58f08f0d3fc01273a3b
traffic.cgi: Do not use hard-coded red interface name

If QMI is used the dial in mode has to be set as ppp dialin but the
interface name is red. In such a case the old code tried to display
the stats for the ppp0 interface which is wrong.

This patch fixes this issue by calling the handy function to get
the correct interface name for red.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/traffic.cgi