Skip to content

Commit

Permalink
Allow RFC6062 TCP relay data to look like TLS; fixes coturn#605
Browse files Browse the repository at this point in the history
  • Loading branch information
tupelo-schneck committed Oct 30, 2020
1 parent ae2ee1f commit a83bffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/relay/ns_ioalib_engine_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a83bffd

Please sign in to comment.