mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
disable https for dlna and fic certs path
This commit is contained in:
@@ -236,23 +236,22 @@ func loadTorrent(path, host string) (ret []interface{}) {
|
||||
|
||||
func getLink(host, path string) string {
|
||||
if !strings.HasPrefix(host, "http") {
|
||||
if settings.Ssl {
|
||||
host = "https://" + host
|
||||
} else {
|
||||
host = "http://" + host
|
||||
}
|
||||
|
||||
// if settings.Ssl {
|
||||
// host = "https://" + host
|
||||
// } else {
|
||||
host = "http://" + host
|
||||
// }
|
||||
|
||||
}
|
||||
pos := strings.LastIndex(host, ":")
|
||||
if pos > 7 {
|
||||
host = host[:pos]
|
||||
}
|
||||
if settings.Ssl {
|
||||
return host + ":" + settings.SslPort + "/" + path
|
||||
} else {
|
||||
return host + ":" + settings.Port + "/" + path
|
||||
}
|
||||
|
||||
// if settings.Ssl {
|
||||
// return host + ":" + settings.SslPort + "/" + path
|
||||
// } else {
|
||||
return host + ":" + settings.Port + "/" + path
|
||||
// }
|
||||
}
|
||||
|
||||
func getObjFromTorrent(path, parent, host string, torr *torr.Torrent, file *state.TorrentFileStat) (ret interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user