1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-31 15:00:59 +01:00

Merge pull request #643 from tupelo-schneck/master

Allow RFC6062 TCP relay data to look like TLS; fixes #605
This commit is contained in:
Mészáros Mihály 2020-12-08 08:16:31 +01:00 committed by GitHub
commit 75309e5c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3374,7 +3374,7 @@ int register_callback_on_ioa_socket(ioa_engine_handle e, ioa_socket_handle s, in
}
} else {
#if TLS_SUPPORTED
if(check_tentative_tls(s->fd)) {
if((s->sat != TCP_CLIENT_DATA_SOCKET) && (s->sat != TCP_RELAY_DATA_SOCKET) && check_tentative_tls(s->fd)) {
s->tobeclosed = 1;
return -1;
}