1 parent
36a3981d47
commit
305d98b780
1 file changed
+1
@@ -757,6 +757,7 @@ traffic_selector_t *traffic_selector_create_from_subnet(host_t *net,
|
|||||||
}
|
}
|
||||||
from = net->get_address(net);
|
from = net->get_address(net);
|
||||||
memcpy(this->from, from.ptr, from.len);
|
memcpy(this->from, from.ptr, from.len);
|
||||||
|
netbits = min(netbits, this->type == TS_IPV4_ADDR_RANGE ? 32 : 128);
|
||||||
calc_range(this, netbits);
|
calc_range(this, netbits);
|
||||||
if (port)
|
if (port)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user