forked from cory/tildefriends
Missing port.
This commit is contained in:
parent
ab62e83110
commit
e6f5eb244e
@ -1502,6 +1502,7 @@ static void _tf_ssb_rpc_peers_exchange(tf_ssb_connection_t* connection, uint8_t
|
|||||||
|
|
||||||
JSContext* context = tf_ssb_connection_get_context(connection);
|
JSContext* context = tf_ssb_connection_get_context(connection);
|
||||||
JSValue out_message = JS_NewObject(context);
|
JSValue out_message = JS_NewObject(context);
|
||||||
|
JS_SetPropertyStr(context, out_message, "port", JS_NewInt32(context, tf_ssb_server_get_port(ssb)));
|
||||||
JS_SetPropertyStr(context, out_message, "peers", _tf_ssb_get_peers_exchange(ssb));
|
JS_SetPropertyStr(context, out_message, "peers", _tf_ssb_get_peers_exchange(ssb));
|
||||||
tf_ssb_connection_rpc_send_json(connection, flags, -request_number, NULL, out_message, NULL, NULL, NULL);
|
tf_ssb_connection_rpc_send_json(connection, flags, -request_number, NULL, out_message, NULL, NULL, NULL);
|
||||||
JS_FreeValue(context, out_message);
|
JS_FreeValue(context, out_message);
|
||||||
|
Loading…
Reference in New Issue
Block a user