From 7cbc3f6b062a77d33096e415845f7ad8065c793a Mon Sep 17 00:00:00 2001 From: iBug Date: Mon, 27 Jul 2020 14:02:06 +0800 Subject: [PATCH] Critical: Exclude the first line from GFWList --- gfwlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfwlist.py b/gfwlist.py index 64097b9..5292b7f 100755 --- a/gfwlist.py +++ b/gfwlist.py @@ -51,7 +51,7 @@ def parse_gfwlist(text): blackpat = [] # blacklisted patterns whitepat = [] # whitelisted patterns - for line in text.splitlines(): + for line in text.splitlines()[1:]: if not line.strip() or line.startswith("!"): continue # ignore comments and empty lines