mirror of
https://github.com/Toperlock/sing-box-geosite.git
synced 2025-08-02 23:07:36 +08:00
删除yaml
文件里no-resolve
This commit is contained in:
parent
801ac77798
commit
08df3a5300
2
main.py
2
main.py
@ -90,6 +90,8 @@ def parse_and_convert_to_dataframe(link):
|
||||
pattern = 'DOMAIN'
|
||||
else:
|
||||
pattern, address = item.split(',', 1)
|
||||
if pattern == "IP-CIDR" and "no-resolve" in address:
|
||||
address = address.split(',', 1)[0]
|
||||
rows.append({'pattern': pattern.strip(), 'address': address.strip(), 'other': None})
|
||||
df = pd.DataFrame(rows, columns=['pattern', 'address', 'other'])
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user