Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fix public IP hack for browser environments
Browse files Browse the repository at this point in the history
  • Loading branch information
albrow committed Aug 14, 2019
1 parent d85bc25 commit 0f9c2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0f9c2ca

Please sign in to comment.