Skip to content

Commit 90b7b53

Browse files
authored
fix the typo in the serveHTTPApi
It looks like the incorrect address passed into the logger in case of error
1 parent 2560e46 commit 90b7b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ipfs/daemon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error
473473
for _, addr := range apiAddrs {
474474
apiMaddr, err := ma.NewMultiaddr(addr)
475475
if err != nil {
476-
return nil, fmt.Errorf("serveHTTPApi: invalid API address: %q (err: %s)", apiAddr, err)
476+
return nil, fmt.Errorf("serveHTTPApi: invalid API address: %q (err: %s)", addr, err)
477477
}
478478
if listenerAddrs[string(apiMaddr.Bytes())] {
479479
continue

0 commit comments

Comments
 (0)