mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 04:17:44 +08:00
Merge pull request #7156 from requilence/patch-1
fix the typo in the serveHTTPApi
This commit is contained in:
commit
d64eec9f7d
@ -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