Fixed typos.
This commit is contained in:
parent
e20e143f1e
commit
9d023b1f2e
1 changed files with 16 additions and 15 deletions
31
src/net.c
31
src/net.c
|
@ -851,21 +851,22 @@ cp
|
||||||
if(p->status.active && p->status.meta)
|
if(p->status.active && p->status.meta)
|
||||||
{
|
{
|
||||||
if(p->last_ping_time + timeout < now)
|
if(p->last_ping_time + timeout < now)
|
||||||
if(p->status.pinged && !p->status.got_pong)
|
{
|
||||||
{
|
if(p->status.pinged && !p->status.got_pong)
|
||||||
syslog(LOG_INFO, "%s (" IP_ADDR_S ") didn't respond to ping",
|
{
|
||||||
p->hostname, IP_ADDR_V(p->vpn_ip));
|
syslog(LOG_INFO, "%s (" IP_ADDR_S ") didn't respond to ping",
|
||||||
p->status.timeout = 1;
|
p->hostname, IP_ADDR_V(p->vpn_ip));
|
||||||
terminate_connection(p);
|
p->status.timeout = 1;
|
||||||
}
|
terminate_connection(p);
|
||||||
else if(p->want_ping)
|
}
|
||||||
{
|
else if(p->want_ping)
|
||||||
send_ping(p);
|
{
|
||||||
p->last_ping_time = now;
|
send_ping(p);
|
||||||
p->status.pinged = 1;
|
p->last_ping_time = now;
|
||||||
p->status.get_pong = 0;
|
p->status.pinged = 1;
|
||||||
}
|
p->status.got_pong = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cp
|
cp
|
||||||
|
|
Loading…
Reference in a new issue