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