mirror of
https://github.com/coturn/coturn.git
synced 2026-01-07 08:11:00 +01:00
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.