mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2024-11-23 13:59:42 +00:00
Fix AddressCandidateHelper not generating proper HTTPS candidates
This commit is contained in:
parent
61d702eb63
commit
e93a46f103
@ -74,7 +74,10 @@ public class AddressCandidateHelper(
|
||||
candidates
|
||||
.filter { it.protocol == URLProtocol.HTTP }
|
||||
.forEach {
|
||||
candidates.add(URLBuilder(it).apply { protocol = URLProtocol.HTTPS }.build())
|
||||
candidates.add(URLBuilder(it).apply {
|
||||
protocol = URLProtocol.HTTPS
|
||||
if (port == URLProtocol.HTTP.defaultPort) port = URLProtocol.HTTPS.defaultPort
|
||||
}.build())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user