security: Make mobile listen on localhost by default. I did not intend to leave it open.

This commit is contained in:
2025-03-08 20:40:03 -05:00
parent 1afdbe6932
commit 973cd53266
6 changed files with 16 additions and 8 deletions

View File

@ -342,7 +342,8 @@ char* tf_trace_export(tf_trace_t* trace)
size += snprintf(buffer, k_out_buffer_size, "{\"displayTimeUnit\": \"ns\",\n\"traceEvents\": [\n");
if (*trace->process_name)
{
size += snprintf(buffer + size, k_out_buffer_size - size, "{\"ph\":\"M\",\"pid\":%d,\"name\":\"process_name\",\"args\":{\"name\":\"%s\"}},\n", getpid(), trace->process_name);
size +=
snprintf(buffer + size, k_out_buffer_size - size, "{\"ph\":\"M\",\"pid\":%d,\"name\":\"process_name\",\"args\":{\"name\":\"%s\"}},\n", getpid(), trace->process_name);
}
uv_rwlock_rdlock(&trace->threads_lock);
for (int i = 0; i < trace->threads_count; i++)