support for left=%any change our address dynamically

This commit is contained in:
Martin Willi 2007-06-18 05:57:59 +00:00
parent ca68a75eaf
commit 209c2e9049
1 changed files with 6 additions and 4 deletions

View File

@ -288,16 +288,18 @@ static void stroke_add_conn(stroke_msg_t *msg, FILE *out)
msg->add_conn.other = tmp_end;
free(interface);
}
if (!interface)
else
{
interface = charon->kernel_interface->get_interface(
charon->kernel_interface, my_host);
if (!interface)
{
DBG1(DBG_CFG, "left nor right host is our side, aborting\n");
goto destroy_hosts;
DBG1(DBG_CFG, "left nor right host is our side, assuming left=local");
}
else
{
free(interface);
}
free(interface);
}
my_id = identification_create_from_string(msg->add_conn.me.id ?