cli: Log full HTTP address for uploads

This commit is contained in:
Marius 2019-05-26 22:28:14 +02:00
parent d23be46d7a
commit b89c337b1b
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ func Serve() {
stderr.Fatalf("Unable to create listener: %s", err) stderr.Fatalf("Unable to create listener: %s", err)
} }
if Flags.HttpSock == "" {
stdout.Printf("You can now upload files to: http://%s%s", address, basepath)
}
if err = http.Serve(listener, nil); err != nil { if err = http.Serve(listener, nil); err != nil {
stderr.Fatalf("Unable to serve: %s", err) stderr.Fatalf("Unable to serve: %s", err)
} }