diff --git a/src/ssb.rpc.c b/src/ssb.rpc.c index 5d4f1bc2..2433d639 100644 --- a/src/ssb.rpc.c +++ b/src/ssb.rpc.c @@ -522,10 +522,11 @@ static void _tf_ssb_rpc_tunnel_endpoints(tf_ssb_connection_t* connection, uint8_ tf_ssb_t* ssb = tf_ssb_connection_get_ssb(connection); if (!tf_ssb_is_room(ssb)) { - tf_ssb_connection_rpc_send_error_method_not_allowed(connection, flags, -request_number, "room.attendants"); + tf_ssb_connection_rpc_send_error_method_not_allowed(connection, flags, -request_number, "tunnel.endpoints"); return; } + tf_ssb_connection_add_request(connection, -request_number, "tunnel.endpoints", NULL, NULL, NULL, NULL); tf_ssb_connection_set_endpoint(connection, true, request_number); _tf_ssb_rpc_send_endpoints(ssb); }