fix the typo in the serveHTTPApi
It looks like the incorrect address passed into the logger in case of error
Roman Khafizianov committed
Apr 14, 2020 at 13:24 UTC
90b7b53a4024e6b367d36282ccb0251cfe0e780b
1 file changed
+1
-1
cmd/ipfs/daemon.go
+1
-1
@@ -473,7 +473,7 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error
473
for _, addr := range apiAddrs {
474
apiMaddr, err := ma.NewMultiaddr(addr)
475
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)
477
}
478
if listenerAddrs[string(apiMaddr.Bytes())] {
479
continue