From ea26b9bf53732198b5b3ad16e834d195e5cc1965 Mon Sep 17 00:00:00 2001 From: charlie4284 Date: Fri, 26 Jan 2024 22:38:47 +0800 Subject: [PATCH] chore: rename var --- src/firewall.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/firewall.py b/src/firewall.py index 970fd8291..d99d866c0 100644 --- a/src/firewall.py +++ b/src/firewall.py @@ -82,18 +82,18 @@ def _exclude_network( Returns: The network pool without the network segments in excludes. """ - total_excluded_networks = set(networks) + total_networks_without_excluded = set(networks) for exclude in excludes: scoped_excluded_networks: set[NetworkT] = set() - for net in total_excluded_networks: + for net in total_networks_without_excluded: if net.overlaps(exclude): scoped_excluded_networks.update(net.address_exclude(exclude)) else: scoped_excluded_networks.add(net) - total_excluded_networks = scoped_excluded_networks + total_networks_without_excluded = scoped_excluded_networks - return total_excluded_networks + return total_networks_without_excluded def refresh_firewall( self,