support for left=%any change our address dynamically
This commit is contained in:
@@ -288,16 +288,18 @@ static void stroke_add_conn(stroke_msg_t *msg, FILE *out)
|
|||||||
msg->add_conn.other = tmp_end;
|
msg->add_conn.other = tmp_end;
|
||||||
free(interface);
|
free(interface);
|
||||||
}
|
}
|
||||||
if (!interface)
|
else
|
||||||
{
|
{
|
||||||
interface = charon->kernel_interface->get_interface(
|
interface = charon->kernel_interface->get_interface(
|
||||||
charon->kernel_interface, my_host);
|
charon->kernel_interface, my_host);
|
||||||
if (!interface)
|
if (!interface)
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, "left nor right host is our side, aborting\n");
|
DBG1(DBG_CFG, "left nor right host is our side, assuming left=local");
|
||||||
goto destroy_hosts;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
free(interface);
|
||||||
}
|
}
|
||||||
free(interface);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my_id = identification_create_from_string(msg->add_conn.me.id ?
|
my_id = identification_create_from_string(msg->add_conn.me.id ?
|
||||||
|
|||||||
Reference in New Issue
Block a user