Skip to content
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

Added function to get the remote peer's IP address (conn.RemoteAddr()) #95

Merged
merged 1 commit into from
Jun 30, 2022
Merged

Added function to get the remote peer's IP address (conn.RemoteAddr()) #95

merged 1 commit into from
Jun 30, 2022

Conversation

rabb1t
Copy link

@rabb1t rabb1t commented Jun 29, 2022

Hi,

In the clustered RabbitMQ installation it is often necessary to get the remote node's IP address to be able to determine to which node exactly you are connected to.

Having that in mind, I've added conn.RemoteAddr() method which behaves similar to conn.LocalAddr() but returns remote peer IP address:port instead of local one.

Thank you and have a good day!

@Zerpet
Copy link
Contributor

Zerpet commented Jun 29, 2022

I will merge after the checks pass successfully.

@Zerpet Zerpet self-assigned this Jun 29, 2022
@Zerpet Zerpet merged commit da48d91 into rabbitmq:main Jun 30, 2022
@rabb1t rabb1t deleted the feature/add-remoteAddr-support branch June 30, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants