1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

serve http/webdav: support SSL/TLS

This commit is contained in:
Nick Craig-Wood
2018-02-15 15:01:19 +00:00
parent cc9d7156e4
commit 358c1fbac9
4 changed files with 146 additions and 48 deletions

View File

@@ -13,6 +13,7 @@ import (
"time"
_ "github.com/ncw/rclone/backend/local"
"github.com/ncw/rclone/cmd/serve/httplib"
"github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fs/config"
"github.com/ncw/rclone/fs/filter"
@@ -28,8 +29,9 @@ const (
)
func startServer(t *testing.T, f fs.Fs) {
s := newServer(f)
s.srv.SetBindAddress(testBindAddress)
opt := httplib.DefaultOpt
opt.ListenAddr = testBindAddress
s := newServer(f, &opt)
go s.serve()
// try to connect to the test server