mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
change ssl port type in DB and fix apply
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user