mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
write correct address to api file
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user