mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 13:57:52 +08:00
commit
f2e38f54a3
@ -452,7 +452,7 @@ func getApiClient(repoPath, apiAddrStr string) (http.Client, error) {
|
||||
return nil, err
|
||||
}
|
||||
if len(addr.Protocols()) == 0 {
|
||||
return nil, fmt.Errorf("mulitaddr doesn't provide any protocols")
|
||||
return nil, fmt.Errorf("multiaddr doesn't provide any protocols")
|
||||
}
|
||||
} else {
|
||||
addr, err = fsrepo.APIAddr(repoPath)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user