cli: Log full HTTP address for uploads
This commit is contained in:
parent
d23be46d7a
commit
b89c337b1b
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue