security: Make mobile listen on localhost by default. I did not intend to leave it open.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 30m26s

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

@ -781,7 +781,7 @@ static void _test_http(const tf_test_options_t* options)
tf_http_t* http = tf_http_create(&loop);
tf_http_add_handler(http, "/hello", _test_http_handler, NULL, NULL);
tf_http_add_handler(http, "/post", _test_http_handler_post, NULL, NULL);
tf_http_listen(http, 23456, NULL, NULL, NULL);
tf_http_listen(http, 23456, true, NULL, NULL, NULL);
test_http_t test = { .loop = &loop };
uv_async_init(&loop, &test.async, _test_http_async);