|
@@ -316,6 +316,11 @@ func (ipt *IPTables) Stats(table, chain string) ([][]string, error) {
|
|
|
|
|
|
ipv6 := ipt.proto == ProtocolIPv6
|
|
ipv6 := ipt.proto == ProtocolIPv6
|
|
|
|
|
|
|
|
+ // Skip the warning if exist
|
|
|
|
+ if strings.HasPrefix(lines[0], "#") {
|
|
|
|
+ lines = lines[1:]
|
|
|
|
+ }
|
|
|
|
+
|
|
rows := [][]string{}
|
|
rows := [][]string{}
|
|
for i, line := range lines {
|
|
for i, line := range lines {
|
|
// Skip over chain name and field header
|
|
// Skip over chain name and field header
|