mirror of
https://github.com/apache/activemq.git
synced 2025-02-27 20:59:06 +00:00
Merge pull request #696 from jbonofre/AMQ-8138
[AMQ-8138] Set client IP address with Stomp host header
This commit is contained in:
commit
0348938952
@ -752,6 +752,7 @@ public class ProtocolConverter {
|
||||
String passcode = headers.get(Stomp.Headers.Connect.PASSCODE);
|
||||
String clientId = headers.get(Stomp.Headers.Connect.CLIENT_ID);
|
||||
String heartBeat = headers.get(Stomp.Headers.Connect.HEART_BEAT);
|
||||
String host = headers.get(Stomp.Headers.Connect.HOST);
|
||||
|
||||
if (heartBeat == null) {
|
||||
heartBeat = defaultHeartBeat;
|
||||
@ -768,6 +769,7 @@ public class ProtocolConverter {
|
||||
} else {
|
||||
connectionInfo.setClientId("" + connectionInfo.getConnectionId().toString());
|
||||
}
|
||||
connectionInfo.setClientIp(host);
|
||||
|
||||
connectionInfo.setResponseRequired(true);
|
||||
connectionInfo.setUserName(login);
|
||||
|
Loading…
x
Reference in New Issue
Block a user