turn icon indicating copy to clipboard operation
turn copied to clipboard

Support TURN only or STUN only mode for examples/turn-server

Open danjenkins opened this issue 1 year ago • 3 comments

Currently if someone wants to only support STUN... they can't disable the TURN server being available. The module should allow you to configure this behaviour in server setup.

danjenkins avatar Jan 10 '23 13:01 danjenkins

I assume you are referring to examples/turn-server?

stv0g avatar Jan 20 '23 13:01 stv0g

From what I could see in the code... there's no way to use the module in a STUN only way?

danjenkins avatar Jan 20 '23 13:01 danjenkins

No, turn.Server currently does not support filtering which messages are supported.

If we would add support for it, I would propose to add support for a message handler which would check whether a given message class is supported. Just like we already have handlers for validating permissions and authentication requests.

stv0g avatar Jan 21 '23 16:01 stv0g