mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#1333] Restored empty check
This commit is contained in:
@@ -398,8 +398,10 @@ CfgSubnets4::selectSubnet(const std::string& iface,
|
|||||||
Subnet4Ptr subnet_selected;
|
Subnet4Ptr subnet_selected;
|
||||||
|
|
||||||
// First, try subnet specific interface name.
|
// First, try subnet specific interface name.
|
||||||
|
if (!(*subnet)->getIface(Network4::Inheritance::NONE).empty()) {
|
||||||
if ((*subnet)->getIface(Network4::Inheritance::NONE) == iface) {
|
if ((*subnet)->getIface(Network4::Inheritance::NONE) == iface) {
|
||||||
subnet_selected = (*subnet);
|
subnet_selected = (*subnet);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Interface not specified for a subnet, so let's try if
|
// Interface not specified for a subnet, so let's try if
|
||||||
|
Reference in New Issue
Block a user