mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 09:16:55 +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:
|
||||
try:
|
||||
check = ipaddress.ip_network(ppip[0])
|
||||
existedAddress.add(pip)
|
||||
existedAddress.add(check.compressed)
|
||||
except Exception as e:
|
||||
print(f"[WGDashboard] Error: {self.Name} peer {p.id} have invalid ip")
|
||||
configurationAddresses = self.Address.split(',')
|
||||
|
Loading…
x
Reference in New Issue
Block a user