From a43c8b4b009228e194583e8ed1acdf9cec58ede3 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Sun, 16 Feb 2025 17:43:22 +0800 Subject: [PATCH] Update dashboard.py --- src/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dashboard.py b/src/dashboard.py index 0cc38e3..b7f84fd 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -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())