mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Log IP address when spawning server/client
This commit is contained in:
parent
1443fc3e5b
commit
8e610ba024
@ -222,7 +222,7 @@ static void tmate_spawn_slave_server(struct tmate_ssh_client *client)
|
|||||||
set_session_token(client, token);
|
set_session_token(client, token);
|
||||||
free(token);
|
free(token);
|
||||||
|
|
||||||
tmate_debug("Spawning tmux slave server");
|
tmate_debug("Spawning slave server for %s", client->ip_address);
|
||||||
|
|
||||||
tmux_socket_fd = server_create_socket();
|
tmux_socket_fd = server_create_socket();
|
||||||
if (tmux_socket_fd < 0)
|
if (tmux_socket_fd < 0)
|
||||||
@ -263,7 +263,7 @@ static void tmate_spawn_slave_client(struct tmate_ssh_client *client)
|
|||||||
|
|
||||||
set_session_token(client, token);
|
set_session_token(client, token);
|
||||||
|
|
||||||
tmate_debug("Spawn tmux slave client");
|
tmate_debug("Spawning slave client for %s", client->ip_address);
|
||||||
|
|
||||||
tmux_socket_fd = client_connect(socket_path, 0);
|
tmux_socket_fd = client_connect(socket_path, 0);
|
||||||
if (tmux_socket_fd < 0) {
|
if (tmux_socket_fd < 0) {
|
||||||
|
@ -174,7 +174,8 @@ static void handle_sigchld(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (WIFSIGNALED(status)) {
|
if (WIFSIGNALED(status)) {
|
||||||
child_dead = 1; child_exit_status = EXIT_FAILURE;
|
child_dead = 1;
|
||||||
|
child_exit_status = EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (child_dead)
|
if (child_dead)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user