Skip to content

Commit

Permalink
Edit TURN server parsing conditions (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
PMohanJ authored Oct 2, 2023
1 parent a4b5e9d commit f66f9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selkies_gstreamer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit f66f9e0

Please sign in to comment.