You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally it was getpeername, later changed to getsockname: link
I checked the manual and confirmed that getpeername should indeed be used.
int getpeername(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len);
The getpeername() function returns the address of the peer connected to the specified socket.
int getsockname(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len);
The getsockname() function returns the current address for the specified socket.
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.
srs3.0
centos7
'Please ensure that the markdown structure is maintained.
Solution:
Change
getsockname
togetpeername
.Please ensure that the markdown structure is maintained.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: