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

Allow RFC6062 TCP relay data to look like TLS; fixes #605

This commit is contained in:
Robert Tupelo-Schneck 2020-10-30 12:34:31 -04:00
parent ae2ee1f4e4
commit a83bffd942

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;
}