mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +08:00
RPCAddress -> ddresses.API
This commit is contained in:
@ -32,11 +32,11 @@ func runCmd(c *commander.Command, inp []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// launch the RPC endpoint.
|
// launch the RPC endpoint.
|
||||||
if n.Config.RPCAddress == "" {
|
if n.Config.Addresses.API == "" {
|
||||||
return errors.New("no config.RPCAddress endpoint supplied")
|
return errors.New("no config.Addresses.API endpoint supplied")
|
||||||
}
|
}
|
||||||
|
|
||||||
maddr, err := ma.NewMultiaddr(n.Config.RPCAddress)
|
maddr, err := ma.NewMultiaddr(n.Config.Addresses.API)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user