luci-mod-status: fix iptables not showing comments
authorLiangbin Lian <jjm2473@gmail.com>
Tue, 5 Sep 2023 06:26:33 +0000 (14:26 +0800)
committerJo-Philipp Wich <jo@mein.io>
Thu, 2 Nov 2023 10:44:53 +0000 (11:44 +0100)
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
(cherry picked from commit 2ca117c5a6a5c1cd047272548e53435c4d3adebc)

modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js

index 951c31218d858e1f81ac8137778788cd2655613d..e409a5ac50cf30821761d46d2a839576fe23f3ca 100644 (file)
@@ -173,7 +173,7 @@ return view.extend({
                                        srcnet,
                                        dstnet,
                                        options,
-                                       [ comment ]
+                                       [ comment, '%h'.format(comment) ]
                                ]);
 
                                if (target) {