remove duplicate line from dnscrypt_to_smartdns output

This commit is contained in:
bgme 2025-02-26 11:31:45 +08:00
parent 41ae948391
commit e8429d66ed
3 changed files with 71 additions and 68 deletions

View file

@ -57,10 +57,10 @@ def get_not_china_doh_list():
def get_smartdns_config():
stamps = get_not_china_doh_list()
lines = map(
lines = set(map(
lambda x: 'server-https https://' + x.hostname + x.path + ' -group GFW -exclude-default-group',
stamps
)
))
return '\n'.join(lines)