Skip to content

feat: Improve TURN server configuration safety and error handling - #166

Open
bromiesTM wants to merge 1 commit into
mainfrom
claude-does-things
Open

feat: Improve TURN server configuration safety and error handling#166
bromiesTM wants to merge 1 commit into
mainfrom
claude-does-things

Conversation

@bromiesTM

Copy link
Copy Markdown
Contributor

Abort early if retrieving the current TURN server list fails, preventing spurious "already exists" errors when proceeding blindly. Remove error suppression that masked real configuration problems. Extract jq parsing into a variable for better readability.

Abort early if retrieving the current TURN server list fails,
preventing spurious "already exists" errors when proceeding blindly.
Remove error suppression that masked real configuration problems.
Extract jq parsing into a variable for better readability.

Signed-off-by: Kai Henseler <kai.henseler@strato.de>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens TURN server configuration in configure.sh by failing fast when the current TURN server state cannot be reliably determined, and by removing prior error suppression so real configuration problems surface instead of causing misleading downstream errors.

Changes:

  • Abort TURN configuration early if talk:turn:list fails, preventing add attempts against an unknown state.
  • Stop suppressing talk:turn:add errors so TURN configuration failures are reported as real errors.
  • Extract TURN list parsing into an intermediate variable for readability and reuse.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread configure.sh
Comment on lines +531 to +532
_turn_entries=$(echo "${turnList}" | jq -r '.[] | [.schemes, .server, .protocols] | @tsv' 2>/dev/null)
if [ -n "${_turn_entries}" ]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants