Skip to content

Commit 0801bc6

Browse files
authored
Merge pull request #4509 from sever-sever/T7458
T7458: Fix VPN IPsec unexpected passthrough logic bug
2 parents a99174d + 2f8c013 commit 0801bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conf_mode/vpn_ipsec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ def generate(ipsec):
727727
for remote_prefix in remote_prefixes:
728728
local_net = ipaddress.ip_network(local_prefix)
729729
remote_net = ipaddress.ip_network(remote_prefix)
730-
if local_net.overlaps(remote_net):
730+
if local_net.subnet_of(remote_net):
731731
if passthrough is None:
732732
passthrough = []
733733
passthrough.append(local_prefix)

0 commit comments

Comments
 (0)