1
0
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:
Juan Batiz-Benet
2014-10-01 00:46:39 -07:00
parent 7cd9e4db3e
commit 11a8826d4f

View File

@ -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
}