Skip to content

Commit

Permalink
Fix RTMPS address with custom ports (datarhei/restreamer#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Dec 15, 2023
1 parent bcd3b7b commit c1f9b95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/utils/restreamer.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ class Restreamer {
if (config.source.network.rtmp.secure === true) {
const [, rtmp_port] = splitHostPort(val.config.rtmp.address_tls);
if (rtmp_port !== '1935') {
config.source.network.rtmp.host += ':' + rtmp_port;
config.source.network.rtmp.host = config.hostname + ':' + rtmp_port;
}
}

Expand Down
24 changes: 12 additions & 12 deletions src/views/Edit/Sources/Network.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,27 +634,27 @@ function AdvancedSettings(props) {
? settings.push.type === 'hls'
? settings.general.analyzeduration_http
: settings.push.type === 'rtmp'
? settings.general.analyzeduration_rtmp
: settings.general.analyzeduration
? settings.general.analyzeduration_rtmp
: settings.general.analyzeduration
: protocolClass === 'http'
? settings.general.analyzeduration_http
: protocolClass === 'rtmp'
? settings.general.analyzeduration_rtmp
: settings.general.analyzeduration
? settings.general.analyzeduration_http
: protocolClass === 'rtmp'
? settings.general.analyzeduration_rtmp
: settings.general.analyzeduration
}
onChange={props.onChange(
'general',
settings.mode === 'push'
? settings.push.type === 'hls'
? 'analyzeduration_http'
: settings.push.type === 'rtmp'
? 'analyzeduration_rtmp'
: 'analyzeduration'
? 'analyzeduration_rtmp'
: 'analyzeduration'
: protocolClass === 'http'
? 'analyzeduration_http'
: protocolClass === 'rtmp'
? 'analyzeduration_rtmp'
: 'analyzeduration',
? 'analyzeduration_http'
: protocolClass === 'rtmp'
? 'analyzeduration_rtmp'
: 'analyzeduration',
)}
/>
<Typography variant="caption">
Expand Down

0 comments on commit c1f9b95

Please sign in to comment.