Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danjenkins opened this issue Jan 10, 2023 · 3 comments
Open

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

danjenkins opened this issue Jan 10, 2023 · 3 comments

Comments

@danjenkins
Copy link

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.

@stv0g stv0g changed the title Support TURN inly or STUN only modes Support TURN only or STUN only modes Jan 20, 2023
@stv0g stv0g changed the title Support TURN only or STUN only modes Support TURN only or STUN only mode for examples/turn-server Jan 20, 2023
@stv0g
Copy link
Member

stv0g commented Jan 20, 2023

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

@danjenkins
Copy link
Author

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

@stv0g
Copy link
Member

stv0g commented Jan 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants