change ssl port type in DB and fix apply

This commit is contained in:
nikk gitanes
2023-11-13 02:40:22 +03:00
parent 52e1ab9cca
commit a736d08701
4 changed files with 6 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ import (
"net"
"os"
"path/filepath"
"strconv"
"server/log"
"server/settings"
@@ -17,8 +18,9 @@ func Start(port, sslport, sslCert, sslKey string, sslEnabled, roSets, searchWA b
// set settings ssl enabled
settings.Ssl = sslEnabled
if sslport == "" {
if settings.BTsets.SslPort != "" {
sslport = settings.BTsets.SslPort
userSSlPort := strconv.Itoa(settings.BTsets.SslPort)
if userSSlPort != "0" {
sslport = userSSlPort
} else {
sslport = "8091"
}