fixed typos
This commit is contained in:
@@ -473,7 +473,7 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this,
|
|||||||
if (!vip)
|
if (!vip)
|
||||||
{ /* if it is set to something like %poolname, request an address */
|
{ /* if it is set to something like %poolname, request an address */
|
||||||
if (msg->add_conn.me.subnets)
|
if (msg->add_conn.me.subnets)
|
||||||
{ /* use the same addreass as in subnet, if any */
|
{ /* use the same address as in subnet, if any */
|
||||||
if (strchr(msg->add_conn.me.subnets, '.'))
|
if (strchr(msg->add_conn.me.subnets, '.'))
|
||||||
{
|
{
|
||||||
vip = host_create_any(AF_INET);
|
vip = host_create_any(AF_INET);
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ static void starter_stroke_add_end(stroke_msg_t *msg, stroke_end_t *msg_end, sta
|
|||||||
msg_end->sourceip_size = atoi(pos + 1);
|
msg_end->sourceip_size = atoi(pos + 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ /* a sigle address */
|
{ /* a single address */
|
||||||
msg_end->sourceip = push_string(msg, conn_end->srcip);
|
msg_end->sourceip = push_string(msg, conn_end->srcip);
|
||||||
if (strchr(conn_end->srcip, ':'))
|
if (strchr(conn_end->srcip, ':'))
|
||||||
{ /* IPv6 */
|
{ /* IPv6 */
|
||||||
|
|||||||
Reference in New Issue
Block a user