From 0f9c2ca569a5ea4564a7cf0291abafa7258cbaf0 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Wed, 14 Aug 2019 16:46:01 -0700 Subject: [PATCH] Fix public IP hack for browser environments --- p2p/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/node.go b/p2p/node.go index cefabcf78..eff3e566e 100644 --- a/p2p/node.go +++ b/p2p/node.go @@ -484,7 +484,7 @@ func newAddrsFactory(advertiseAddrs []ma.Multiaddr) func([]ma.Multiaddr) []ma.Mu } func getPublicIP() (string, error) { - res, err := http.Get("https://ifconfig.me") + res, err := http.Get("https://ifconfig.me/ip") if err != nil { return "", err }