Browse Source

obs-webrtc: Add STUN support to Link header parse

Paul Gregoire 1 year ago
parent
commit
62c4a90809
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/obs-webrtc/whip-output.cpp

+ 2 - 1
plugins/obs-webrtc/whip-output.cpp

@@ -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);