Unverified Commit 6992de7a authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

Added machine-readable IP:PORT in text-mode 'daemon' (#2101)

parent fed439a9
......@@ -16,6 +16,7 @@
package daemon
import (
"encoding/json"
"errors"
"fmt"
"net"
......@@ -173,5 +174,6 @@ func (r daemonResult) Data() interface{} {
}
func (r daemonResult) String() string {
return tr("Daemon is now listening on %s:%s", r.IP, r.Port)
j, _ := json.Marshal(r)
return fmt.Sprintln(tr("Daemon is now listening on %s:%s", r.IP, r.Port)) + fmt.Sprintln(string(j))
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment