Skip to content

Fix deprecated webrtcICEServers parser for IPv6 hosts; document address format#5906

Open
poeggi wants to merge 2 commits into
bluenviron:mainfrom
poeggi:main
Open

Fix deprecated webrtcICEServers parser for IPv6 hosts; document address format#5906
poeggi wants to merge 2 commits into
bluenviron:mainfrom
poeggi:main

Conversation

@poeggi

@poeggi poeggi commented Jun 29, 2026

Copy link
Copy Markdown

Closes #5905

What changes

Bug fix (internal/conf/conf.go): the deprecated webrtcICEServers parser used strings.Split and checked for exactly 5 parts. An IPv6 host contains extra colons, producing the wrong part count and silently dropping credentials. Fixed with strings.SplitN(s, ":", 4) -- the hostport token is kept intact regardless of colons.

Docs (mediamtx.yml, docs/2-features/05-configuration.md): added an address format reference explaining the [host]:port form, what the empty-host default does on different platforms, and how to restrict to IPv4 only or bind to a specific interface. No address default values are changed.

poeggi added 2 commits June 29, 2026 20:53
strings.Split produces wrong part count when the host contains colons
(IPv6). SplitN(s, ";", 4) keeps the hostport token intact.
@poeggi poeggi changed the title Enable dual-stack by default ([::]:PORT instead of :PORT) Fix deprecated webrtcICEServers parser for IPv6 hosts; document address format Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix deprecated webrtcICEServers parser for IPv6 hosts; document address format

1 participant