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

WIP: DTLS #26

Merged
merged 2 commits into from
May 19, 2021
Merged

WIP: DTLS #26

merged 2 commits into from
May 19, 2021

Conversation

taoso
Copy link
Contributor

@taoso taoso commented May 19, 2021

dtls 功能基于 https://github.com/pion/dtls
但是这个库不支持会话恢复,我自己改了一下,具体见 taoso/dtls@7553ed4

功能都调通了,后面需要加一下配置并清理调试代码。

还有,如果将 dtls 库的改动合并到上游也是一个值得思考的问题。

@taoso
Copy link
Contributor Author

taoso commented May 19, 2021

DTLS 通道建立后还需要停止 TLS 的 tun 读协程,不然可能出现竞争读 tun 设备的问题。如果 DTLS 通道有问题,还需要切回 TLS 通道。这段逻辑有点小复杂,还没有实现。

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

Successfully merging this pull request may close these issues.

None yet

2 participants