mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-07 19:03:08 +03:00
log timeouts
This commit is contained in:
parent
a7f0c456ab
commit
b36fc73b7a
@ -94,6 +94,8 @@ void start_shoveler(int in_socket)
|
|||||||
} else {
|
} else {
|
||||||
/* Timed out: it's necessarily SSH */
|
/* Timed out: it's necessarily SSH */
|
||||||
cnx.proto = timeout_protocol();
|
cnx.proto = timeout_protocol();
|
||||||
|
if (verbose)
|
||||||
|
log_message(LOG_INFO, "timed out, connect to %s\n", cnx.proto->description);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -308,6 +308,10 @@ void main_loop(int listen_sockets[], int num_addr_listen)
|
|||||||
* data so probe the protocol */
|
* data so probe the protocol */
|
||||||
if ((cnx[i].probe_timeout < time(NULL))) {
|
if ((cnx[i].probe_timeout < time(NULL))) {
|
||||||
cnx[i].proto = timeout_protocol();
|
cnx[i].proto = timeout_protocol();
|
||||||
|
if (verbose)
|
||||||
|
log_message(LOG_INFO,
|
||||||
|
"timed out, connect to %s\n",
|
||||||
|
cnx[i].proto->description);
|
||||||
} else {
|
} else {
|
||||||
res = probe_client_protocol(&cnx[i]);
|
res = probe_client_protocol(&cnx[i]);
|
||||||
if (res == PROBE_AGAIN)
|
if (res == PROBE_AGAIN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user