diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2023-01-04 14:40:17 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2023-01-04 14:40:31 -0500 |
commit | 8671aed54a5a11eefa80552d5bb66c9a175c7179 (patch) | |
tree | 1544e4f5c0b91e4dc3dd12e652c4be65e5f740d8 | |
parent | c92288f2ae8c490610567f9490a6f1ed2af07324 (diff) | |
download | libnice-8671aed54a5a11eefa80552d5bb66c9a175c7179.tar.gz |
test-turn: Make it work against coturn
-rw-r--r-- | tests/test-turn.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/test-turn.c b/tests/test-turn.c index 62426d2..8dec9ba 100644 --- a/tests/test-turn.c +++ b/tests/test-turn.c @@ -340,10 +340,6 @@ udp_force_no_remove_tcp (void) NICE_RELAY_TYPE_TURN_TCP); } - - - - int main (int argc, char **argv) { @@ -362,11 +358,11 @@ main (int argc, char **argv) if (g_spawn_command_line_sync ("turnserver --help", &out_str, &err_str, NULL, NULL) && err_str) { if (!strstr(err_str, "--user")) { - g_print ("rfc5766-turn-server not installed, skipping turn test\n"); + g_print ("coturn not installed, skipping turn test\n"); return 0; } } else { - g_print ("rfc5766-turn-server not installed, skipping turn test\n"); + g_print ("coturn not installed, skipping turn test\n"); return 0; } g_free (err_str); @@ -377,6 +373,9 @@ main (int argc, char **argv) "--user", "toto:0xaae440b3348d50265b63703117c7bfd5", "--realm", "realm", "--listening-port", portstr, + "--listening-ip", "127.0.0.1", + "--allow-loopback-peers", + "--no-cli", NULL); g_test_add_func ("/nice/turn/udp", udp_no_force_no_remove_udp); |