Commit 41bc355b authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

/rpcaddr should be storing a multiaddr

client expects a multiaddr. server was writing a bsaddr
parent a76f6af1
......@@ -63,7 +63,12 @@ func NewDaemonListener(ipfsnode *core.IpfsNode, addr *ma.Multiaddr, confdir stri
return nil, err
}
_, err = ofi.Write([]byte(host))
mstr, err := addr.String()
if err != nil {
return nil, err
}
_, err = ofi.Write([]byte(mstr))
if err != nil {
log.Warning("Could not write to rpcaddress file: %s", err)
return nil, err
......
......@@ -67,6 +67,7 @@ func SendCommand(command *Command, confdir string) error {
return err
}
log.Info("Daemon address: %s", server)
maddr, err := ma.NewMultiaddr(server)
if err != nil {
return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment