Tags: pion/turn
Tags
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.
Support stand alone STUN server mode Running in stand alone STUN server does not start due to packet conn config requiring relay address config during validation. To enable that mode, bypass validation if relay address config in packet conn config is nil. Note that it is still validated in `ListenerConfig`.
PreviousNext