From f66f9e026bd605ffead6373c533b16c18f7bef93 Mon Sep 17 00:00:00 2001 From: Mohan_J <57227290+PMohanJ@users.noreply.github.com> Date: Mon, 2 Oct 2023 21:42:37 +0530 Subject: [PATCH] Edit TURN server parsing conditions (#101) --- src/selkies_gstreamer/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selkies_gstreamer/__main__.py b/src/selkies_gstreamer/__main__.py index 04083af1..b0dd7896 100644 --- a/src/selkies_gstreamer/__main__.py +++ b/src/selkies_gstreamer/__main__.py @@ -530,7 +530,7 @@ async def on_audio_signalling_error(e): data = generate_rtc_config(args.turn_host, args.turn_port, args.turn_shared_secret, args.coturn_web_username, turn_protocol, using_turn_tls) stun_servers, turn_servers, rtc_config = parse_rtc_config(data) elif args.turn_username and args.turn_password: - if not args.turn_host and args.turn_port: + if not (args.turn_host and args.turn_port): logger.error("missing turn host and turn port") sys.exit(1) logger.warning("using legacy non-HMAC TURN credentials.")