mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
separate connection information creationg from log emission
This commit is contained in:
1 parent
d78c810d84
commit
3aa245efa5
4 files changed
+52
-27
No files matched your search
+3
-1
@@ -72,6 +72,7 @@ void start_shoveler(int in_socket)
|
||||
int res = PROBE_AGAIN;
|
||||
int out_socket;
|
||||
struct connection cnx;
|
||||
struct connection_desc desc;
|
||||
|
||||
init_cnx(&cnx);
|
||||
cnx.q[0].fd = in_socket;
|
||||
@@ -111,7 +112,8 @@ void start_shoveler(int in_socket)
|
||||
|
||||
cnx.q[1].fd = out_socket;
|
||||
|
||||
log_connection(&cnx);
|
||||
get_connection_desc(&desc, &cnx);
|
||||
log_connection(&desc, &cnx);
|
||||
|
||||
flush_deferred(&cnx.q[1]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user