mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2025-04-12 08:49:09 +00:00
TG fix
This commit is contained in:
parent
a223550247
commit
e4be79c179
2 changed files with 12 additions and 11 deletions
2
.github/workflows/create-lists.yml
vendored
2
.github/workflows/create-lists.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
|||
-v ${{ github.workspace }}/Services:/app/Services \
|
||||
-v ${{ github.workspace }}/SRS:/app/SRS \
|
||||
-v ${{ github.workspace }}/DAT:/app/DAT \
|
||||
itdoginfo/compilesrs:0.1.13
|
||||
itdoginfo/compilesrs:0.1.14
|
||||
|
||||
- name: Check Russia/inside-dnsmasq-ipset
|
||||
uses: itdoginfo/dnsmasq-action@0.1
|
||||
|
|
21
convert.py
21
convert.py
|
@ -20,6 +20,7 @@ DiscordSubnets = 'Subnets/IPv4/discord.lst'
|
|||
MetaSubnets = 'Subnets/IPv4/meta.lst'
|
||||
TwitterSubnets = 'Subnets/IPv4/twitter.lst'
|
||||
TelegramSubnets = 'Subnets/IPv4/telegram.lst'
|
||||
ExcludeServices = {"telegram.lst"}
|
||||
|
||||
def raw(src, out):
|
||||
domains = set()
|
||||
|
@ -29,8 +30,8 @@ def raw(src, out):
|
|||
for dir_path in src:
|
||||
path = Path(dir_path)
|
||||
if path.is_dir():
|
||||
files.extend(path.glob('*'))
|
||||
elif path.is_file():
|
||||
files.extend(f for f in path.glob('*') if f.name not in ExcludeServices)
|
||||
elif path.is_file() and path.name not in ExcludeServices:
|
||||
files.append(path)
|
||||
|
||||
for f in files:
|
||||
|
@ -58,8 +59,8 @@ def dnsmasq(src, out, remove={'google.com'}):
|
|||
for dir_path in src:
|
||||
path = Path(dir_path)
|
||||
if path.is_dir():
|
||||
files.extend(path.glob('*'))
|
||||
elif path.is_file():
|
||||
files.extend(f for f in path.glob('*') if f.name not in ExcludeServices)
|
||||
elif path.is_file() and path.name not in ExcludeServices:
|
||||
files.append(path)
|
||||
|
||||
for f in files:
|
||||
|
@ -92,8 +93,8 @@ def clashx(src, out, remove={'google.com'}):
|
|||
for dir_path in src:
|
||||
path = Path(dir_path)
|
||||
if path.is_dir():
|
||||
files.extend(path.glob('*'))
|
||||
elif path.is_file():
|
||||
files.extend(f for f in path.glob('*') if f.name not in ExcludeServices)
|
||||
elif path.is_file() and path.name not in ExcludeServices:
|
||||
files.append(path)
|
||||
|
||||
for f in files:
|
||||
|
@ -121,8 +122,8 @@ def kvas(src, out, remove={'google.com'}):
|
|||
for dir_path in src:
|
||||
path = Path(dir_path)
|
||||
if path.is_dir():
|
||||
files.extend(path.glob('*'))
|
||||
elif path.is_file():
|
||||
files.extend(f for f in path.glob('*') if f.name not in ExcludeServices)
|
||||
elif path.is_file() and path.name not in ExcludeServices:
|
||||
files.append(path)
|
||||
|
||||
for f in files:
|
||||
|
@ -150,8 +151,8 @@ def mikrotik_fwd(src, out, remove={'google.com'}):
|
|||
for dir_path in src:
|
||||
path = Path(dir_path)
|
||||
if path.is_dir():
|
||||
files.extend(path.glob('*'))
|
||||
elif path.is_file():
|
||||
files.extend(f for f in path.glob('*') if f.name not in ExcludeServices)
|
||||
elif path.is_file() and path.name not in ExcludeServices:
|
||||
files.append(path)
|
||||
|
||||
for f in files:
|
||||
|
|
Loading…
Add table
Reference in a new issue