是否可以通过配置在rabbitmq的消息中获取客户端的IP地址? [英] Is it possible to get client's ip address by configuration in rabbitmq's message?

查看:1142
本文介绍了是否可以通过配置在rabbitmq的消息中获取客户端的IP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在消息中获取rabbitmq的客户端IP地址。
1.一种方法是应用程序获取它。
2.另一种方法是修改rabbitmq的源代码来获取它。

I want to get rabbitmq's client ip address in message. 1. One way is for application to gain it. 2. Anther way is modify rabbitmq's source code to gain it.

但是可以通过配置获得它吗?

But is it possible to get it by configuration?

推荐答案

不,除非您手动将它放在手机上,否则无法将消息(主体或头文件)中的客户端ip。

No, it is not possible to get client ip in message (body or headers) unless you put it there manually.

这篇关于是否可以通过配置在rabbitmq的消息中获取客户端的IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆