mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch 'develop' into merge/develop
This commit is contained in:
commit
bccd0ae8f0
3 changed files with 13 additions and 2 deletions
|
@ -6,6 +6,7 @@ The changelog for SRS.
|
|||
|
||||
## SRS 5.0 Changelog
|
||||
|
||||
* v4.0, 2021-08-07, Fix [#2508](https://github.com/ossrs/srs/pull/2508), Support features query by API. 5.0.10
|
||||
* v5.0, 2021-07-07, Refine AUTHORS.txt to AUTHORS.md, etc. 5.0.8
|
||||
* v5.0, 2021-07-01, Move AUTHORS.txt to trunk for docker. 5.0.7
|
||||
* v5.0, 2021-06-28, Squash: Support query lastest available version. 5.0.6
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <srs_protocol_utility.hpp>
|
||||
#include <srs_app_config.hpp>
|
||||
#include <srs_app_statistic.hpp>
|
||||
|
||||
#include <srs_app_utility.hpp>
|
||||
#include <unistd.h>
|
||||
#include <deque>
|
||||
using namespace std;
|
||||
|
@ -96,6 +96,11 @@ srs_error_t SrsGoApiRtcPlay::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMe
|
|||
}
|
||||
if (clientip.empty()) {
|
||||
clientip = dynamic_cast<SrsHttpMessage*>(r)->connection()->remote_ip();
|
||||
// Overwrite by ip from proxy.
|
||||
string oip = srs_get_original_ip(r);
|
||||
if (!oip.empty()) {
|
||||
clientip = oip;
|
||||
}
|
||||
}
|
||||
|
||||
string api;
|
||||
|
@ -314,6 +319,11 @@ srs_error_t SrsGoApiRtcPublish::do_serve_http(ISrsHttpResponseWriter* w, ISrsHtt
|
|||
}
|
||||
if (clientip.empty()){
|
||||
clientip = dynamic_cast<SrsHttpMessage*>(r)->connection()->remote_ip();
|
||||
// Overwrite by ip from proxy.
|
||||
string oip = srs_get_original_ip(r);
|
||||
if (!oip.empty()) {
|
||||
clientip = oip;
|
||||
}
|
||||
}
|
||||
|
||||
string api;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 9
|
||||
#define VERSION_REVISION 10
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue