Skip to content

Commit

Permalink
obs-webrtc: Add STUN support to Link header parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mondain authored and RytoEX committed Sep 11, 2024
1 parent 3138500 commit 62c4a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/obs-webrtc/whip-output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ void WHIPOutput::ParseLinkHeader(std::string val,
token = val.substr(0, pos);
}

if (token.find("<turn:", 0) == 0) {
if ((token.find("<stun:", 0) == 0) ||
(token.find("<turn:", 0) == 0)) {
url = extractUrl(token);
} else if (token.find("username=") != std::string::npos) {
username = extractValue(token);
Expand Down

0 comments on commit 62c4a90

Please sign in to comment.