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