-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRS2.0 HTTP-FLV, can it also forward the client IP? #1488
Comments
When playing HTTP, there is no on_connect, only on_play, and on_play does not have an IP.
|
When converting an HTTP Request to SrsRequest, the IP information is lost and cannot be recovered.
Directly accessing HTTP-FLV already provides IP information, but we also need to consider the scenario of accessing through an HTTP proxy.
|
SRS2, HTTP direct access, and proxy are all supported.
|
SRS3 is also supported.
|
SRS2.0 HTTP-FLV, can it also forward the client IP?
RTMP requests have the client's requested IP,
but FLV does not.
RTMP
{"action":"on_play","client_id":116,"ip":"172.17.0.1","vhost":"defaultVhost","app":"live","stream":"livestream","param":"?token=123&salt=456","pageUrl":""}
FLV
{"action":"on_play","client_id":113,"ip":"","vhost":"defaultVhost","app":"live","stream":"livestream","param":"?token=123&salt=456","pageUrl":""}
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: