|
Lines 1009-1014
Link Here
|
| 1009 |
snprintf(buf, sizeof buf, "%.50s %d %d", |
1009 |
snprintf(buf, sizeof buf, "%.50s %d %d", |
| 1010 |
get_remote_ipaddr(), get_remote_port(), get_local_port()); |
1010 |
get_remote_ipaddr(), get_remote_port(), get_local_port()); |
| 1011 |
child_set_env(&env, &envsize, "SSH_CLIENT", buf); |
1011 |
child_set_env(&env, &envsize, "SSH_CLIENT", buf); |
|
|
1012 |
|
| 1013 |
snprintf(buf, sizeof buf, "%.50s %d %d", |
| 1014 |
get_local_ipaddr(packet_get_connection_in()), get_local_port(), get_remote_port()); |
| 1015 |
child_set_env(&env, &envsize, "SSH_SERVER", buf); |
| 1012 |
|
1016 |
|
| 1013 |
if (s->ttyfd != -1) |
1017 |
if (s->ttyfd != -1) |
| 1014 |
child_set_env(&env, &envsize, "SSH_TTY", s->tty); |
1018 |
child_set_env(&env, &envsize, "SSH_TTY", s->tty); |