@cryptotaxi247 / kubo / commits / 75240599c

fix: prefer 127.0.0.1

With an empty API headers config like ```js "API": { "HTTPHeaders": {} }, ``` running collect-profiles.sh shows connection errors when trying to POST to `/debug/pprof-mutex/` end point when using `localhost`. The same errors do not occur when using `127.0.0.1` License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>

Oli Evans committed Sep 24, 2019 at 11:20 UTC 75240599c9c1cbca7f9cebe2fd9ac3705e8a9ad8
1 file changed +1 -1
bin/collect-profiles.sh
+1 -1
@@ -3,7 +3,7 @@ set -x
3 set -euo pipefail
4 IFS=$'\n\t'
5
6 -HTTP_API="${1:-localhost:5001}"
6 +HTTP_API="${1:-127.0.0.1:5001}"
7 tmpdir=$(mktemp -d)
8 export PPROF_TMPDIR="$tmpdir"
9 pushd "$tmpdir"