Allow calls to set_address() for any host-sized TS, not only dynamic ones
This fixes CHILD_SA updates (e.g. due to MOBIKE), which were broken
since 4cb0783.
This commit is contained in:
@@ -513,7 +513,7 @@ METHOD(traffic_selector_t, is_dynamic, bool,
|
|||||||
METHOD(traffic_selector_t, set_address, void,
|
METHOD(traffic_selector_t, set_address, void,
|
||||||
private_traffic_selector_t *this, host_t *host)
|
private_traffic_selector_t *this, host_t *host)
|
||||||
{
|
{
|
||||||
if (this->dynamic)
|
if (is_host(this, NULL))
|
||||||
{
|
{
|
||||||
this->type = host->get_family(host) == AF_INET ?
|
this->type = host->get_family(host) == AF_INET ?
|
||||||
TS_IPV4_ADDR_RANGE : TS_IPV6_ADDR_RANGE;
|
TS_IPV4_ADDR_RANGE : TS_IPV6_ADDR_RANGE;
|
||||||
|
|||||||
Reference in New Issue
Block a user