mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 17:26:56 +00:00
Update dashboard.py
- Fixed #
This commit is contained in:
parent
c50bb70383
commit
369b4b92cc
@ -1152,7 +1152,7 @@ class WireguardConfiguration:
|
|||||||
if len(ppip) == 2:
|
if len(ppip) == 2:
|
||||||
try:
|
try:
|
||||||
check = ipaddress.ip_network(ppip[0])
|
check = ipaddress.ip_network(ppip[0])
|
||||||
existedAddress.add(pip)
|
existedAddress.add(check.compressed)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[WGDashboard] Error: {self.Name} peer {p.id} have invalid ip")
|
print(f"[WGDashboard] Error: {self.Name} peer {p.id} have invalid ip")
|
||||||
configurationAddresses = self.Address.split(',')
|
configurationAddresses = self.Address.split(',')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user