diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-02 14:32:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-02 14:32:12 +0200 |
commit | cfbe6be516808de4b45ca9d98f912999ef8daaab (patch) | |
tree | f458df7621833582ccd350a00c5c0404fe782a88 /server/lib/live/live-manager.ts | |
parent | 42efd780a2db0925b6befd308bd8fc6590117546 (diff) | |
download | PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.tar.gz PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.tar.zst PeerTube-cfbe6be516808de4b45ca9d98f912999ef8daaab.zip |
Add ability to provide rtmp listening hostname
Diffstat (limited to 'server/lib/live/live-manager.ts')
-rw-r--r-- | server/lib/live/live-manager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index 5ffe41ee3..da09aa05c 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts | |||
@@ -118,7 +118,7 @@ class LiveManager { | |||
118 | logger.error('Cannot run RTMP server.', { err, ...lTags() }) | 118 | logger.error('Cannot run RTMP server.', { err, ...lTags() }) |
119 | }) | 119 | }) |
120 | 120 | ||
121 | this.rtmpServer.listen(CONFIG.LIVE.RTMP.PORT) | 121 | this.rtmpServer.listen(CONFIG.LIVE.RTMP.PORT, CONFIG.LIVE.RTMP.HOSTNAME) |
122 | } | 122 | } |
123 | 123 | ||
124 | if (CONFIG.LIVE.RTMPS.ENABLED) { | 124 | if (CONFIG.LIVE.RTMPS.ENABLED) { |
@@ -141,7 +141,7 @@ class LiveManager { | |||
141 | logger.error('Cannot run RTMPS server.', { err, ...lTags() }) | 141 | logger.error('Cannot run RTMPS server.', { err, ...lTags() }) |
142 | }) | 142 | }) |
143 | 143 | ||
144 | this.rtmpsServer.listen(CONFIG.LIVE.RTMPS.PORT) | 144 | this.rtmpsServer.listen(CONFIG.LIVE.RTMPS.PORT, CONFIG.LIVE.RTMPS.HOSTNAME) |
145 | } | 145 | } |
146 | } | 146 | } |
147 | 147 | ||