Use server name for ssh_info instead of local address

If we are behind an Apache2 reverse proxy, getLocalAddr returns
127.0.0.1, which is not an address that a client can use to
connect to us.  Instead we should use the hostname the client
asked Apache for in the HTTP headers, as that is still present
as getServerName().

Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed