diff options
author | Russ Allbery <rra@dropbox.com> | 2016-07-27 11:42:40 -0700 |
---|---|---|
committer | Russ Allbery <rra@dropbox.com> | 2016-07-27 11:42:40 -0700 |
commit | ecbab4243e5a595af01dccd539156b95b4e9040f (patch) | |
tree | 862bdacdf91b2fdf4c895112059bdd8c4cdf183b /server | |
parent | 4205d6cc4862b15548d2f52f2c8de166efea1eeb (diff) |
Switch to SSH_CONNECTION for client IP address
SSH_CLIENT is apparently deprecated.
Diffstat (limited to 'server')
-rw-r--r-- | server/server-ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server-ssh.c b/server/server-ssh.c index 6198a65..e7b2faa 100644 --- a/server/server-ssh.c +++ b/server/server-ssh.c @@ -238,9 +238,9 @@ server_ssh_new_client(void) user = getenv("REMCTL_USER"); if (user == NULL) die("REMCTL_USER must be set in the environment via authorized_keys"); - ssh_client = getenv("SSH_CLIENT"); + ssh_client = getenv("SSH_CONNECTION"); if (ssh_client == NULL) - die("SSH_CLIENT not set (remctl-shell must be run via ssh)"); + die("SSH_CONNECTION not set (remctl-shell must be run via ssh)"); client_info = vector_split_space(ssh_client, NULL); /* Create basic client struct. */ |