mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2026-05-13 23:06:20 +00:00
Compare commits
1 Commits
dependabot
...
#1257-fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ece7cd1896 |
@@ -1314,11 +1314,11 @@ def API_ping_getAllPeersIpAddress():
|
||||
for x in allowed_ip:
|
||||
try:
|
||||
ip = ipaddress.ip_network(x, strict=False)
|
||||
if ip.num_addresses == 1:
|
||||
parsed.append(str(ip.network_address))
|
||||
except ValueError as e:
|
||||
app.logger.error(f"Failed to parse IP address of {p.id} - {c.Name}")
|
||||
host = list(ip.hosts())
|
||||
if len(host) == 1:
|
||||
parsed.append(str(host[0]))
|
||||
|
||||
endpoint = p.endpoint.replace(" ", "").replace("(none)", "")
|
||||
if len(p.name) > 0:
|
||||
cips[f"{p.name} - {p.id}"] = {
|
||||
|
||||
@@ -10,7 +10,7 @@ requests==2.32.5
|
||||
tcconfig==0.30.1
|
||||
sqlalchemy==2.0.49
|
||||
sqlalchemy_utils==0.42.1
|
||||
psycopg[binary]==3.3.4
|
||||
psycopg[binary]==3.3.3
|
||||
PyMySQL==1.1.2
|
||||
tzlocal==5.3.1
|
||||
python-jose==3.5.0
|
||||
|
||||
Reference in New Issue
Block a user