Tags: pion/turn
Tags
Fixed channel number reuse, added server logs (#541) Do not delete the client-side binding when a ChannelBind transaction fails. This keeps the channel number stable for a peer even if a response is lost, preventing "same peer, different channel" rebind attempts. Server already has channel-bind conflict detection implemented and handled it silently. Added server warning logs in ChannelBind handling to help discover and debug similar issues in the future.
Add a quota handler callback This PR adds a quota handler callback function which, if specified, is called by the server just before making an allocation for a user. The handler should return a single bool: if true then the allocation request can proceed, otherwise the request is rejected with a 486 (Allocation Quota Reached) error.
Lower priority of per-packet error message The error message "Failed to handle datagram" is generated for each received packet; it can therefore be used by an attacker to fill the server's logs by sending a burst of incorrect packets. Lower its priority to debug.
PreviousNext