Commit a951a30
committed
Fix WAN Steering stat card showing iptables rule count instead of traffic class count (#521)
ruleCount() counts actual iptables rules (MARK + CONNMARK = 2 per traffic class).
Parse traffic_classes from daemon status JSON and count enabled ones instead.1 parent 30d103a commit a951a30
1 file changed
Lines changed: 10 additions & 1 deletion
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1288 | 1297 | | |
1289 | 1298 | | |
1290 | 1299 | | |
| |||
0 commit comments