Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
41bc355b
Commit
41bc355b
authored
Oct 02, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/rpcaddr should be storing a multiaddr
client expects a multiaddr. server was writing a bsaddr
parent
a76f6af1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
daemon/daemon.go
daemon/daemon.go
+6
-1
daemon/daemon_client.go
daemon/daemon_client.go
+1
-0
No files found.
daemon/daemon.go
View file @
41bc355b
...
...
@@ -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
...
...
daemon/daemon_client.go
View file @
41bc355b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment