Skip to content

Commit

Permalink
/rpcaddr should be storing a multiaddr
Browse files Browse the repository at this point in the history
client expects a multiaddr. server was writing a bsaddr
  • Loading branch information
jbenet committed Oct 2, 2014
1 parent 874d612 commit a3fd5a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions daemon/daemon_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3fd5a0

Please sign in to comment.