VR: consider NICs for remote access VPN when apply dhcp entry (#11681)

This commit is contained in:
Wei Zhou 2025-09-22 10:25:21 +02:00 committed by GitHub
parent 9167cd3b72
commit 393b5d2b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,7 +226,7 @@ class CsDhcp(CsDataBag):
i = IPAddress(entry['ipv4_address']) i = IPAddress(entry['ipv4_address'])
# Calculate the device # Calculate the device
for v in self.devinfo: for v in self.devinfo:
if i > v['network'].network and i < v['network'].broadcast: if i > v['network'].network and v['network'].broadcast and i < v['network'].broadcast:
v['dnsmasq'] = True v['dnsmasq'] = True
# Virtual Router # Virtual Router
v['gateway'] = entry['default_gateway'] v['gateway'] = entry['default_gateway']