mirror of
https://github.com/hatamiarash7/WireGuard-Config-Generator.git
synced 2025-06-11 04:06:41 +02:00
Unnecessary use of a comprehension
This commit is contained in:
parent
ea89731ec4
commit
1c0d07d682
4
main.py
4
main.py
@ -27,9 +27,7 @@ def get_ips() -> List[str]:
|
|||||||
for section in lists:
|
for section in lists:
|
||||||
# Iterate over individual IP addresses
|
# Iterate over individual IP addresses
|
||||||
for endpoint_ip in lists[section]:
|
for endpoint_ip in lists[section]:
|
||||||
ips.extend([
|
ips.extend(list(lists[section][endpoint_ip].values()))
|
||||||
value for value in lists[section][endpoint_ip].values()
|
|
||||||
])
|
|
||||||
# Return a list of unique IP addresses
|
# Return a list of unique IP addresses
|
||||||
return list(set(ips))
|
return list(set(ips))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user