mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +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.
|
||||
if n.Config.RPCAddress == "" {
|
||||
return errors.New("no config.RPCAddress endpoint supplied")
|
||||
if n.Config.Addresses.API == "" {
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user