luci-mod-status: fix iptables not showing comments 6565/head
authorLiangbin Lian <jjm2473@gmail.com>
Tue, 5 Sep 2023 06:26:33 +0000 (14:26 +0800)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2023 06:26:33 +0000 (14:26 +0800)
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
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) {