mirror of
https://gitee.com/ja-netfilter/ja-netfilter.git
synced 2024-11-16 23:49:38 +08:00
Merge pull request #25 from wongsyrone/fix-override-exist-sections
ConfigParser: do NOT override existing sections
This commit is contained in:
commit
f5fff1e0f4
@ -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 ';':
|
||||
|
Loading…
Reference in New Issue
Block a user