From cd65e109bac7533ff7328688b45e8cd05e6fcc86 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Mon, 29 Aug 2022 22:34:33 +0800 Subject: Fix: add option overwriteList Due to MaxMind mmdb file format constraint, the IPs and/or CIDRs of the latter written list will overwrite those of the former one when duplicated data is found. To make sure that the lists you added include all their own IPs and/or CIDRs, you must place the name of the most important list at last in option wantedList and option overwriteList of type maxmindMMDB in config file. The option overwriteList of type maxmindMMDB is used when the IPs and/or CIDRs of some lists in generated mmdb file overlap. For example, if you change the CIDRs of the list "cn", and generate the full version of Country.mmdb file which is with all countries(lists), the option overwriteList must include "cn", so that the "cn" list will be written at last, which ensures it includes all the CIDRs you specify. If the option wantedList of type maxmindMMDB is specified, no need for option overwriteList. --- config.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'config.json') diff --git a/config.json b/config.json index 860a80c8..68bff450 100644 --- a/config.json +++ b/config.json @@ -83,7 +83,19 @@ "type": "maxmindMMDB", "action": "output", "args": { - "outputName": "Country.mmdb" + "outputName": "Country.mmdb", + "overwriteList": [ + "cn", + "private", + "cloudflare", + "cloudfront", + "facebook", + "fastly", + "google", + "netflix", + "telegram", + "twitter" + ] } }, { -- cgit v1.3.1