diff --git a/daemon/daemon.go b/daemon/daemon.go index 8ec84d8482fc9fbaecd3ea9e7e864b25dafe7e21..3ea4cc5dac8bb60cdf97ccd434df2a8feec31f81 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -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 diff --git a/daemon/daemon_client.go b/daemon/daemon_client.go index fe5b1f9efa0deda7fdccbd5277f06f4464d4dac0..17d1b2c265caf8ea4c6553d92d7d1b9dd91398c3 100644 --- a/daemon/daemon_client.go +++ b/daemon/daemon_client.go @@ -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