From 43780345e5af013fe97ca2abe75bebbb95a66fc8 Mon Sep 17 00:00:00 2001 From: PMohanJ Date: Mon, 2 Oct 2023 15:55:10 +0530 Subject: [PATCH] exit if either of the two values doesn't exist or empty --- 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.")