Skip to content

Commit

Permalink
fix: use ssl websocket connection when the interface is secure
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Nov 14, 2023
1 parent 1534f23 commit a251760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/webcams/streamers/WebrtcGo2rtc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class WebrtcGo2rtc extends Mixins(BaseMixin, WebcamMixin) {
const url = new URL('api/ws' + urlSearch, this.camSettings.stream_url)
url.searchParams.set('media', 'video+audio')
// change protocol to ws
url.protocol = 'ws:'
url.protocol = this.$store.state.socket.protocol + ':'
// output a warning, if no src is set in the url
if (!url.searchParams.has('src')) {
Expand Down

0 comments on commit a251760

Please sign in to comment.