From f7989599de09fdba0556e891114af59bd9980263 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Mon, 17 Oct 2022 15:38:44 +0200 Subject: [PATCH] fix `streamingServerAPIUri` cause crash --- packages/server/src/controllers/StreamingController/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/controllers/StreamingController/index.js b/packages/server/src/controllers/StreamingController/index.js index cfd319db..11e5972e 100755 --- a/packages/server/src/controllers/StreamingController/index.js +++ b/packages/server/src/controllers/StreamingController/index.js @@ -8,7 +8,7 @@ const streamingIngestServer = process.env.STREAMING_INGEST_SERVER const streamingServerAPIAddress = process.env.STREAMING_API_SERVER const streamingServerAPIProtocol = streamingServerAPIAddress.startsWith("https") ? "https" : "http" -const streamingServerAPIUri = `${streamingServerAPIProtocol}://${streamingServerAPIAddress}` +const streamingServerAPIUri = `${streamingServerAPIProtocol}://${streamingServerAPIAddress.split("://")[1]}` const FILTER_KEYS = ["stream"]