mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
/rpcaddr should be storing a multiaddr
client expects a multiaddr. server was writing a bsaddr
This commit is contained in:
parent
a76f6af1df
commit
41bc355be3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user