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:
1 parent
455accc687
commit
4a4d20de9d
1 file changed
+1
-1
@@ -513,7 +513,7 @@ METHOD(traffic_selector_t, is_dynamic, bool,
|
||||
METHOD(traffic_selector_t, set_address, void,
|
||||
private_traffic_selector_t *this, host_t *host)
|
||||
{
|
||||
if (this->dynamic)
|
||||
if (is_host(this, NULL))
|
||||
{
|
||||
this->type = host->get_family(host) == AF_INET ?
|
||||
TS_IPV4_ADDR_RANGE : TS_IPV6_ADDR_RANGE;
|
||||
|
||||
Reference in new issue
Block a user