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

Support go-oryx rtmplb with proxy protocol. 3.0.56

This commit is contained in:
winlin 2019-10-04 19:03:34 +08:00
parent 130c545f9a
commit 88df9a2497
7 changed files with 54 additions and 8 deletions

View file

@ -500,6 +500,8 @@ bool srs_client_type_is_publish(SrsRtmpConnType type);
class SrsHandshakeBytes
{
public:
// For RTMP proxy, the real IP.
uint32_t proxy_real_ip;
// [1+1536]
char* c0c1;
// [1+1536+1536]
@ -509,6 +511,8 @@ public:
public:
SrsHandshakeBytes();
virtual ~SrsHandshakeBytes();
public:
virtual void dispose();
public:
virtual srs_error_t read_c0c1(ISrsProtocolReadWriter* io);
virtual srs_error_t read_s0s1s2(ISrsProtocolReadWriter* io);
@ -615,6 +619,10 @@ private:
public:
SrsRtmpServer(ISrsProtocolReadWriter* skt);
virtual ~SrsRtmpServer();
public:
// For RTMP proxy, the real IP. 0 if no proxy.
// @doc https://github.com/ossrs/go-oryx/wiki/RtmpProxy
virtual uint32_t proxy_real_ip();
// Protocol methods proxy
public:
// Set the auto response message when recv for protocol stack.