feat(tls): add simple tls support

This commit is contained in:
Siyuan Miao
2025-03-07 20:14:22 +01:00
parent 8b59a3e387
commit 285de31ade
3 changed files with 137 additions and 0 deletions

View File

@@ -68,6 +68,9 @@ func Main() {
}()
//go RunFuseServer()
go RunWebServer()
if config.TLSMode != "" {
go RunWebSecureServer()
}
// If the cloud token isn't set, the client won't be started by default.
// However, if the user adopts the device via the web interface, handleCloudRegister will start the client.
if config.CloudToken != "" {