diff --git a/src/main/java/io/zhile/research/ja/netfilter/commons/ConfigParser.java b/src/main/java/io/zhile/research/ja/netfilter/commons/ConfigParser.java index 9ea4b3d..fdc6ff3 100644 --- a/src/main/java/io/zhile/research/ja/netfilter/commons/ConfigParser.java +++ b/src/main/java/io/zhile/research/ja/netfilter/commons/ConfigParser.java @@ -45,7 +45,10 @@ public class ConfigParser { } lastSection = section; - map.put(lastSection, new ArrayList<>()); + if (null == map.get(lastSection)) { + // do NOT override existing sections + map.put(lastSection, new ArrayList<>()); + } break; case '#': case ';':