remove duplicate line from dnscrypt_to_smartdns output
This commit is contained in:
parent
41ae948391
commit
e8429d66ed
3 changed files with 71 additions and 68 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue