1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #1488, pass client ip to http callback.3.0.85

This commit is contained in:
winlin 2019-12-26 11:42:19 +08:00
commit 316cab794a
7 changed files with 56 additions and 1 deletions

View file

@ -40,6 +40,7 @@
class SrsKbps;
class SrsBuffer;
class SrsJsonObject;
class ISrsHttpMessage;
// Convert level in string to log level in int.
// @return the log level defined in SrsLogLevel.
@ -649,5 +650,8 @@ extern bool srs_is_boolean(const std::string& str);
// Dump summaries for /api/v1/summaries.
extern void srs_api_dump_summaries(SrsJsonObject* obj);
// Get the original ip from query and header by proxy.
extern std::string srs_get_original_ip(ISrsHttpMessage* r);
#endif