Skip to content

Commit 837dcf6

Browse files
committed
fix: check the stun url
1 parent 09ff820 commit 837dcf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void Parser::ParseArgs(int argc, char *argv[], Args &args) {
116116
exit(1);
117117
}
118118

119-
if (!args.turn_url.empty() && args.turn_url.substr(0, 4) == "turn") {
119+
if (!args.turn_url.empty() && args.turn_url.substr(0, 4) != "turn") {
120120
std::cout << "Turn url should start with \"turn:\"" << std::endl;
121121
exit(1);
122122
}

0 commit comments

Comments
 (0)