mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
fix the typo in the serveHTTPApi
It looks like the incorrect address passed into the logger in case of error
This commit is contained in:
parent
2560e467ef
commit
90b7b53a40
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user