mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-04-26 22:55:53 +03:00
[PR #60] [MERGED] Update html.go: use wss if https is used #61
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cam2ip#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/gen2brain/cam2ip/pull/60
Author: @tacoverflow
Created: 9/16/2025
Status: ✅ Merged
Merged: 9/17/2025
Merged by: @gen2brain
Base:
master← Head:hotfix/use-secure-websockets-if-https-is-used📝 Commits (1)
1e6eae1Update html.go: use wss if https is used📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
handlers/html.go(+10 -2)📄 Description
A very simple change to use wss in case that the connection is done through https so /html page will show an image.
If this is not in place and you put the endpoint behind a reverse proxy like nginx with ssl cert enable the browser will complain about security risks and you will see this messages on the logs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.