aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-05 11:36:03 +0100
committerChocobozzz <me@florianbigard.com>2021-11-05 11:38:17 +0100
commitdf1db951c512a58110171d046ef367789df02733 (patch)
treea8894b4a4864d9e378923f011b4ca9d206e2ee0b /shared/extra-utils
parent8dd754c76735417305c4b68e2ada6f623e9d7650 (diff)
downloadPeerTube-df1db951c512a58110171d046ef367789df02733.tar.gz
PeerTube-df1db951c512a58110171d046ef367789df02733.tar.zst
PeerTube-df1db951c512a58110171d046ef367789df02733.zip
Support RTMPS
Diffstat (limited to 'shared/extra-utils')
-rw-r--r--shared/extra-utils/server/server.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/extra-utils/server/server.ts b/shared/extra-utils/server/server.ts
index f7048ba43..1ed00d724 100644
--- a/shared/extra-utils/server/server.ts
+++ b/shared/extra-utils/server/server.ts
@@ -56,6 +56,7 @@ export class PeerTubeServer {
56 port?: number 56 port?: number
57 57
58 rtmpPort?: number 58 rtmpPort?: number
59 rtmpsPort?: number
59 60
60 parallel?: boolean 61 parallel?: boolean
61 internalServerNumber: number 62 internalServerNumber: number
@@ -154,6 +155,7 @@ export class PeerTubeServer {
154 155
155 this.internalServerNumber = this.parallel ? this.randomServer() : this.serverNumber 156 this.internalServerNumber = this.parallel ? this.randomServer() : this.serverNumber
156 this.rtmpPort = this.parallel ? this.randomRTMP() : 1936 157 this.rtmpPort = this.parallel ? this.randomRTMP() : 1936
158 this.rtmpsPort = this.parallel ? this.randomRTMP() : 1937
157 this.port = 9000 + this.internalServerNumber 159 this.port = 9000 + this.internalServerNumber
158 160
159 this.url = `http://localhost:${this.port}` 161 this.url = `http://localhost:${this.port}`