Skip to content

Commit

Permalink
Fix go2rtc UDP port default config (blakeblackshear#8469)
Browse files Browse the repository at this point in the history
* Fix go2rtc UDP port

* fix

* Use correct port

* fix comment

Co-authored-by: Blake Blackshear <[email protected]>

---------

Co-authored-by: Blake Blackshear <[email protected]>
  • Loading branch information
NickM-27 and blakeblackshear committed Nov 7, 2023
1 parent f29e152 commit f1b60f7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/main/rootfs/usr/local/go2rtc/create_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@
elif go2rtc_config["log"].get("format") is None:
go2rtc_config["log"]["format"] = "text"

if not go2rtc_config.get("webrtc", {}).get("candidates", []):
# ensure there is a default webrtc config
if not go2rtc_config.get("webrtc"):
go2rtc_config["webrtc"] = {}

# go2rtc should listen on 8555 tcp & udp by default
if not go2rtc_config["webrtc"].get("listen"):
go2rtc_config["webrtc"]["listen"] = ":8555"

if not go2rtc_config["webrtc"].get("candidates", []):
default_candidates = []
# use internal candidate if it was discovered when running through the add-on
internal_candidate = os.environ.get(
Expand Down

0 comments on commit f1b60f7

Please sign in to comment.