Skip to content

Commit

Permalink
Merge pull request #7156 from requilence/patch-1
Browse files Browse the repository at this point in the history
fix the typo in the serveHTTPApi
  • Loading branch information
Stebalien committed Apr 14, 2020
2 parents 2560e46 + 90b7b53 commit d64eec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error
for _, addr := range apiAddrs {
apiMaddr, err := ma.NewMultiaddr(addr)
if err != nil {
return nil, fmt.Errorf("serveHTTPApi: invalid API address: %q (err: %s)", apiAddr, err)
return nil, fmt.Errorf("serveHTTPApi: invalid API address: %q (err: %s)", addr, err)
}
if listenerAddrs[string(apiMaddr.Bytes())] {
continue
Expand Down

0 comments on commit d64eec9

Please sign in to comment.