mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1488, support parsing original ip from header for proxy
This commit is contained in:
parent
09b65aff96
commit
d367730883
3 changed files with 42 additions and 0 deletions
|
@ -41,6 +41,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
class SrsKbps;
|
||||
class SrsStream;
|
||||
class ISrsHttpMessage;
|
||||
|
||||
// client open socket and connect to server.
|
||||
extern int srs_socket_connect(std::string server, int port, int64_t timeout, st_netfd_t* pstfd);
|
||||
|
@ -689,5 +690,8 @@ extern bool srs_is_boolean(const std::string& str);
|
|||
// dump summaries for /api/v1/summaries.
|
||||
extern void srs_api_dump_summaries(std::stringstream& ss);
|
||||
|
||||
// Get the original ip from query and header by proxy.
|
||||
extern std::string srs_get_original_ip(ISrsHttpMessage* r);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue