mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Remove (non-working) SSL tracker support
This commit is contained in:
+1
-8
@@ -59,13 +59,6 @@ class TorrentDownloadPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin
|
||||
type = String::class.java,
|
||||
isRequired = false
|
||||
),
|
||||
ConfigMetadata(
|
||||
key = "trackerSsl",
|
||||
label = "Use SSL for tracker",
|
||||
description = "Enables use of SSL for the torrent tracker",
|
||||
type = Boolean::class.java,
|
||||
default = false
|
||||
),
|
||||
ConfigMetadata(
|
||||
key = "privateMode",
|
||||
label = "Create torrents with private mode enabled",
|
||||
@@ -137,7 +130,7 @@ class TorrentDownloadPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin
|
||||
}
|
||||
|
||||
private fun getTrackerUri(): URI {
|
||||
val protocol = if (config("trackerSsl")) "https" else "http"
|
||||
val protocol = "http" // No SSL support in ttorrent: https://github.com/mpetazzoni/ttorrent/issues/4
|
||||
val host = getHostname().getCanonicalHostName()
|
||||
val port = config<Int>("trackerPort")
|
||||
val path = "announce"
|
||||
|
||||
Reference in New Issue
Block a user