implemented updown script to handle firewalling
This commit is contained in:
@@ -222,7 +222,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg)
|
||||
return;
|
||||
}
|
||||
|
||||
if (charon->socket->is_local_address(charon->socket, other_host))
|
||||
if (charon->socket->is_local_address(charon->socket, other_host, NULL))
|
||||
{
|
||||
stroke_end_t tmp_end;
|
||||
host_t *tmp_host;
|
||||
@@ -238,7 +238,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg)
|
||||
msg->add_conn.me = msg->add_conn.other;
|
||||
msg->add_conn.other = tmp_end;
|
||||
}
|
||||
else if (!charon->socket->is_local_address(charon->socket, my_host))
|
||||
else if (!charon->socket->is_local_address(charon->socket, my_host, NULL))
|
||||
{
|
||||
this->stroke_logger->log(this->stroke_logger, ERROR,
|
||||
"left nor right host is our side, aborting");
|
||||
|
||||
Reference in New Issue
Block a user