debugproxies: use IP address instead of host for endpoints
Created by: keegancsmith
This was a regression introduced by https://github.com/sourcegraph/sourcegraph/pull/9950
The hostname we get from the endpoint is something like gitserver-0
. However, this isn't resolvable and requires the service name (so gitserver-0.gitserver
). Instead of depending on that, we can rely on the IP like we used to. We still keep the behaviour of the better display name though by storing Hostname if we have it.