mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 00:30:02 +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,
|
type = String::class.java,
|
||||||
isRequired = false
|
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(
|
ConfigMetadata(
|
||||||
key = "privateMode",
|
key = "privateMode",
|
||||||
label = "Create torrents with private mode enabled",
|
label = "Create torrents with private mode enabled",
|
||||||
@@ -137,7 +130,7 @@ class TorrentDownloadPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun getTrackerUri(): URI {
|
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 host = getHostname().getCanonicalHostName()
|
||||||
val port = config<Int>("trackerPort")
|
val port = config<Int>("trackerPort")
|
||||||
val path = "announce"
|
val path = "announce"
|
||||||
|
|||||||
Reference in New Issue
Block a user