mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Update dashboard.py
This commit is contained in:
@@ -1133,7 +1133,7 @@ class WireguardConfiguration:
|
||||
existedAddress.add(ipaddress.ip_network(caSplit[0]))
|
||||
availableAddress[ca] = network.num_addresses
|
||||
for p in existedAddress:
|
||||
if p.subnet_of(network):
|
||||
if p.version == network.version and p.subnet_of(network):
|
||||
availableAddress[ca] -= 1
|
||||
|
||||
# map(lambda iph : ipaddress.ip_network(iph).compressed, network.hosts())
|
||||
|
Reference in New Issue
Block a user