From b7828e1fba25cd868eb8616c90fbf9ec4dd9efc4 Mon Sep 17 00:00:00 2001 From: OSSRS-AI Date: Sat, 25 Oct 2025 19:43:38 -0400 Subject: [PATCH] API: Remove minimum limit of 10 for count parameter in /api/v1/streams and /api/v1/clients. v7.0.103 (#4358) --- trunk/doc/CHANGELOG.md | 1 + trunk/src/app/srs_app_http_api.cpp | 4 ++-- trunk/src/core/srs_core_version7.hpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/trunk/doc/CHANGELOG.md b/trunk/doc/CHANGELOG.md index e8b2454d4..2979df8d9 100644 --- a/trunk/doc/CHANGELOG.md +++ b/trunk/doc/CHANGELOG.md @@ -7,6 +7,7 @@ The changelog for SRS. ## SRS 7.0 Changelog +* v7.0, 2025-10-25, API: Remove minimum limit of 10 for count parameter in /api/v1/streams and /api/v1/clients. v7.0.103 (#4358) * v7.0, 2025-10-22, AI: Only support AAC/MP3/Opus audio codec. v7.0.102 (#4516) * v7.0, 2025-10-22, AI: Fix AAC audio sample rate reporting in API. v7.0.101 (#4518) * v7.0, 2025-10-20, Merge [#4537](https://github.com/ossrs/srs/pull/4537): Forward: Reject RTMPS destinations with clear error message. v7.0.100 (#4537) diff --git a/trunk/src/app/srs_app_http_api.cpp b/trunk/src/app/srs_app_http_api.cpp index 79c35fac1..cf39aaea9 100644 --- a/trunk/src/app/srs_app_http_api.cpp +++ b/trunk/src/app/srs_app_http_api.cpp @@ -787,7 +787,7 @@ srs_error_t SrsGoApiStreams::serve_http(ISrsHttpResponseWriter *w, ISrsHttpMessa std::string rstart = r->query_get("start"); std::string rcount = r->query_get("count"); int start = srs_max(0, atoi(rstart.c_str())); - int count = srs_max(10, atoi(rcount.c_str())); + int count = srs_max(1, atoi(rcount.c_str())); if ((err = stat_->dumps_streams(data, start, count)) != srs_success) { int code = srs_error_code(err); srs_freep(err); @@ -849,7 +849,7 @@ srs_error_t SrsGoApiClients::serve_http(ISrsHttpResponseWriter *w, ISrsHttpMessa std::string rstart = r->query_get("start"); std::string rcount = r->query_get("count"); int start = srs_max(0, atoi(rstart.c_str())); - int count = srs_max(10, atoi(rcount.c_str())); + int count = srs_max(1, atoi(rcount.c_str())); if ((err = stat_->dumps_clients(data, start, count)) != srs_success) { int code = srs_error_code(err); srs_freep(err); diff --git a/trunk/src/core/srs_core_version7.hpp b/trunk/src/core/srs_core_version7.hpp index 1058c066c..258198d6f 100644 --- a/trunk/src/core/srs_core_version7.hpp +++ b/trunk/src/core/srs_core_version7.hpp @@ -9,6 +9,6 @@ #define VERSION_MAJOR 7 #define VERSION_MINOR 0 -#define VERSION_REVISION 102 +#define VERSION_REVISION 103 #endif \ No newline at end of file