ipfs /api/v0/id is post (#1819)

This commit is contained in:
Jc0803kevin 2022-10-14 00:08:58 +08:00 committed by GitHub
parent 63b8803005
commit a401276e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ type IdOutput struct {
// quick and dirty function to get the local ipfs daemons address for bootstrapping
func getLocalPeerInfo() []peer.AddrInfo {
resp, err := http.Get(LOCAL_PEER_ENDPOINT)
resp, err := http.PostForm(LOCAL_PEER_ENDPOINT, nil)
if err != nil {
log.Fatalln(err)
}