Skip to content

Commit 75f8990

Browse files
weizhouapachedhslove
authored andcommitted
VR: consider NICs for remote access VPN when apply dhcp entry (apache#11681)
1 parent 6b89f08 commit 75f8990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/cs/CsDhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def add(self, entry):
231231
i = IPAddress(entry['ipv4_address'])
232232
# Calculate the device
233233
for v in self.devinfo:
234-
if i > v['network'].network and i < v['network'].broadcast:
234+
if i > v['network'].network and v['network'].broadcast and i < v['network'].broadcast:
235235
v['dnsmasq'] = True
236236
# Virtual Router
237237
v['gateway'] = entry['default_gateway']

0 commit comments

Comments
 (0)