mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-24 02:39:25 +08:00
@ -452,7 +452,7 @@ func getApiClient(repoPath, apiAddrStr string) (http.Client, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(addr.Protocols()) == 0 {
|
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 {
|
} else {
|
||||||
addr, err = fsrepo.APIAddr(repoPath)
|
addr, err = fsrepo.APIAddr(repoPath)
|
||||||
|
Reference in New Issue
Block a user