commit | 8059fac9ecc1dcae1cbce78d1a8ea84886de2a7c | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Tue Jun 02 19:10:19 2009 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Tue Jun 02 19:19:43 2009 -0700 |
tree | 411d71b79fda46cc0a6f43642f1df7275add9a71 | |
parent | bb0f51d0e7a27ccde26453113c531086b0da69fb [diff] |
Use server name for advertised SSH host keys Like our parent commit, 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>