Use .getHostName() instead of .getCanonicalHostname() to avoid reverse DNS lookups (#672)

This commit is contained in:
Simon
2025-09-01 14:00:09 +02:00
committed by GitHub
parent a2abac0698
commit 7a4ad96134
2 changed files with 2 additions and 2 deletions
@@ -150,7 +150,7 @@ class TorrentDownloadPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin
private fun getTrackerUri(): URI {
val protocol = "http" // No SSL support in ttorrent: https://github.com/mpetazzoni/ttorrent/issues/4
val host = getHostname().getCanonicalHostName()
val host = getHostname().getHostName()
val port = config<Int>("trackerPort")
val path = "announce"
@@ -1,4 +1,4 @@
Plugin-Version: 1.0.0
Plugin-Version: 1.0.1
Plugin-Class: org.gameyfin.plugins.download.torrent.TorrentDownloadPlugin
Plugin-Id: org.gameyfin.plugins.download.torrent
Plugin-Name: Torrent Download