mirror of
https://github.com/hatamiarash7/WireGuard-Config-Generator.git
synced 2025-06-09 19:26:40 +02:00
Make IPs list unique
Signed-off-by: Arash Hatami <hatamiarash7@gmail.com>
This commit is contained in:
parent
6374562c2e
commit
d58dda53f6
4
main.py
4
main.py
@ -18,6 +18,10 @@ with open(file='ip-list.json', mode='r', encoding='UTF-8') as file:
|
|||||||
for ip in lists[group]:
|
for ip in lists[group]:
|
||||||
IPS.append(ip)
|
IPS.append(ip)
|
||||||
|
|
||||||
|
# Make IPs list unique
|
||||||
|
IPS = list(set(IPS))
|
||||||
|
|
||||||
|
# Put all IPs in a string
|
||||||
IPS = ", ".join(map(str, IPS))
|
IPS = ", ".join(map(str, IPS))
|
||||||
|
|
||||||
# Load other config options from .env file
|
# Load other config options from .env file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user