Details
Description
The method (getRemoteAddress()) in class "org.apache.activemq.transport.ws.AbstractStompSocket" does not return the correct address; it returns always ""StompSocket_" + hashCode();"
We need the correct address (e.g. "wss://127.0.0.1:63114") for our use case.
The implementation whould be very simple.
In class "org.apache.activemq.transport.ws.jetty8.WSServlet" (and also in jetty9 package) pass the address during creation of class StompSocket in the same package:
String scheme = request.getScheme();
if ("http".equalsIgnoreCase(scheme)) {
scheme = "ws";
} else if ("https".equalsIgnoreCase(scheme))
WebSocket socket = new CustomStompSocket(scheme + "://" + request.getRemoteAddr() + ":" + request.getRemotePort());
It meight be that MQTT is also affected; a fix should be done by the same way.