aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-30 17:00:45 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-30 17:00:45 +0100
commit39a4b10789ff9f97ddc3de7d55bc845cabaac333 (patch)
tree1d12837368cf7e5b529b096e60d8e7ef1480081d /server/src/routes
parentef88eba498d0362137bcc9203a4cf1a20b6dec9e (diff)
downloadjellything-39a4b10789ff9f97ddc3de7d55bc845cabaac333.tar
jellything-39a4b10789ff9f97ddc3de7d55bc845cabaac333.tar.bz2
jellything-39a4b10789ff9f97ddc3de7d55bc845cabaac333.tar.zst
https for native url
Diffstat (limited to 'server/src/routes')
-rw-r--r--server/src/routes/ui/player.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/routes/ui/player.rs b/server/src/routes/ui/player.rs
index becda91..712f7fb 100644
--- a/server/src/routes/ui/player.rs
+++ b/server/src/routes/ui/player.rs
@@ -48,7 +48,8 @@ impl PlayerConfig {
fn jellynative_url(action: &str, secret: &str, node: &str) -> String {
format!(
- "jellynative://{action}/{secret}/http://{}{}",
+ "jellynative://{action}/{secret}/{}://{}{}",
+ if CONF.tls { "https" } else { "http" },
CONF.hostname,
uri!(r_stream(
node,