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. 2.0.269

This commit is contained in:
winlin 2019-12-26 10:37:16 +08:00
parent c5f31570cd
commit 09b65aff96
5 changed files with 15 additions and 1 deletions

View file

@ -23,6 +23,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_app_conn.hpp>
using namespace std;
#include <srs_kernel_log.hpp>
#include <srs_kernel_error.hpp>
#include <srs_app_utility.hpp>
@ -117,6 +119,10 @@ int SrsConnection::srs_id()
return id;
}
string SrsConnection::remote_ip() {
return ip;
}
void SrsConnection::expire()
{
expired = true;