1
0
mirror of https://github.com/coturn/coturn.git synced 2026-01-07 08:11:00 +01:00
coturn/examples
google-labs-jules[bot] 06034663d3 feat: Add option to disable error reasons in STUN responses
This commit introduces a new configuration option, `no-error-reason`.
When enabled, the TURN server will send STUN error responses with an
empty reason phrase. This can be useful in environments where minimizing
response size is critical, at the cost of slightly harder debugging.

Changes include:
- Added `no_error_reason` to the `turn_params_t` struct.
- Modified `mainrelay.c` to parse the `--no-error-reason` command-line
  option and corresponding configuration file setting.
- Updated `ns_turn_server.c` to check this flag and conditionally
  omit the reason phrase when constructing error responses.
- Added the new option to the example `turnserver.conf` file.
- Conceptually outlined test cases for this new functionality.
2025-05-31 11:48:45 +00:00
..
2020-04-28 09:26:31 +00:00
2025-05-30 14:13:59 -07:00
2015-09-15 22:42:39 -07:00
2018-11-05 14:15:36 +00:00