Skip to content

srs_get_peer_ip retrieves the client's address. #1543

@zxl8121

Description

@zxl8121

Description'

Please ensure that the markdown structure is maintained.

Description'

Describe the problem you encountered.
The 'ip' inside 'on_play' is the local IP instead of the client player's IP.

Please ensure that the markdown structure is maintained.

Environment'

Please ensure that the markdown structure is maintained.

  1. SRS Version: srs3.0
  2. Operating System: centos7'

Please ensure that the markdown structure is maintained.

Solution:
Change getsockname to getpeername.

Please ensure that the markdown structure is maintained.

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

BugIt might be a bug.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions