mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 23:20:24 +00:00
portable mode: fix WebDAV support
This commit is contained in:
parent
1e785077f2
commit
db354e838c
1 changed files with 2 additions and 2 deletions
|
@ -94,6 +94,7 @@ func (s *Service) StartPortableMode(sftpdPort, ftpPort, webdavPort int, enabledS
|
|||
} else {
|
||||
binding.Port = 49152 + rand.Intn(15000)
|
||||
}
|
||||
webDavConf.Bindings = []webdavd.Binding{binding}
|
||||
webDavConf.CertificateFile = webDavCert
|
||||
webDavConf.CertificateKeyFile = webDavKey
|
||||
config.SetWebDAVDConfig(webDavConf)
|
||||
|
@ -126,8 +127,7 @@ func (s *Service) getServiceOptionalInfoString() string {
|
|||
if config.GetWebDAVDConfig().CertificateFile != "" && config.GetWebDAVDConfig().CertificateKeyFile != "" {
|
||||
scheme = "https"
|
||||
}
|
||||
info.WriteString(fmt.Sprintf("WebDAV URL: %v://<your IP>:%v/%v",
|
||||
scheme, config.GetWebDAVDConfig().Bindings[0].Port, s.PortableUser.Username))
|
||||
info.WriteString(fmt.Sprintf("WebDAV URL: %v://<your IP>:%v/", scheme, config.GetWebDAVDConfig().Bindings[0].Port))
|
||||
}
|
||||
return info.String()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue