There's bug when dealing with rules which contains wildcard(*)
cokebar opened this issue · comments
Cokebar Chi commented
eg:
gfwlist rule: |http://*2.bahamut.com.tw
gfwlist2dnsmasq_python: server=/2.bahamut.com.tw/127.0.0.1#5353
should be: server=/bahamut.com.tw/127.0.0.1#5353
Cokebar Chi commented
I have no time to maintain this python version. Anyone can help? PR is welcomed.
lphgor commented
domain_pattern = '(?:[\w\-]*\*[\w\-]*\.)?([\w\-]+\.[\w\.\-]+)[\/\*]*'