Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are legitimate cases where one might want to use the current host in "peers". In particular our tests do this by using "localhost"; this *usually* works because the hostname returned by `gethostname` is the ~unique name of the host, so doesn't match "localhost". In some environments, though, `gethostname` can return "localhost", which causes the peer to get filtered out. Notably this includes nix build environments, which intentionally avoid letting global unique state into the environment, since it would make the build non-reproducible.
- Loading branch information