mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 10:57:42 +08:00
write correct address to api file
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
parent
5b9811371c
commit
c3e72377b2
@ -357,7 +357,7 @@ func serveHTTPApi(req cmds.Request) (error, <-chan error) {
|
||||
return fmt.Errorf("serveHTTPApi: ConstructNode() failed: %s", err), nil
|
||||
}
|
||||
|
||||
if err := node.Repo.SetAPIAddr(apiAddr); err != nil {
|
||||
if err := node.Repo.SetAPIAddr(apiMaddr.String()); err != nil {
|
||||
return fmt.Errorf("serveHTTPApi: SetAPIAddr() failed: %s", err), nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user