mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-21 06:26:10 +05:00
add ip param
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"server/web"
|
||||
)
|
||||
|
||||
func Start(port, sslport, sslCert, sslKey string, sslEnabled, roSets, searchWA bool) {
|
||||
func Start(port, ip, sslport, sslCert, sslKey string, sslEnabled, roSets, searchWA bool) {
|
||||
settings.InitSets(roSets, searchWA)
|
||||
// https checks
|
||||
if sslEnabled {
|
||||
@@ -50,8 +50,9 @@ func Start(port, sslport, sslCert, sslKey string, sslEnabled, roSets, searchWA b
|
||||
if port == "" {
|
||||
port = "8090"
|
||||
}
|
||||
|
||||
log.TLogln("Check web port", port)
|
||||
l, err := net.Listen("tcp", ":"+port)
|
||||
l, err := net.Listen("tcp", ip+":"+port)
|
||||
if l != nil {
|
||||
l.Close()
|
||||
}
|
||||
@@ -64,6 +65,7 @@ func Start(port, sslport, sslCert, sslKey string, sslEnabled, roSets, searchWA b
|
||||
// set settings http and https ports. Start web server.
|
||||
settings.Port = port
|
||||
settings.SslPort = sslport
|
||||
settings.IP = ip
|
||||
web.Start()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user