Skip to content

Commit 7cbc3f6

Browse files
committed
Critical: Exclude the first line from GFWList
1 parent c09c33b commit 7cbc3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gfwlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def parse_gfwlist(text):
5151
blackpat = [] # blacklisted patterns
5252
whitepat = [] # whitelisted patterns
5353

54-
for line in text.splitlines():
54+
for line in text.splitlines()[1:]:
5555
if not line.strip() or line.startswith("!"):
5656
continue # ignore comments and empty lines
5757

0 commit comments

Comments
 (0)