serve restic: Print actual listener address

This commit is contained in:
Matt Holt
2018-04-04 14:56:26 +01:00
committed by Nick Craig-Wood
parent 5b8977a053
commit e13f65b953
5 changed files with 80 additions and 15 deletions
+5 -1
View File
@@ -88,8 +88,12 @@ func newWebDAV(f fs.Fs, opt *httplib.Options) *WebDAV {
// serve runs the http server - doesn't return
func (w *WebDAV) serve() {
err := w.srv.Serve()
if err != nil {
fs.Errorf(w.f, "Opening listener: %v", err)
}
fs.Logf(w.f, "WebDav Server started on %s", w.srv.URL())
w.srv.Serve()
w.srv.Wait()
}
// logRequest is called by the webdav module on every request