Fix WS port forwarding
Fixed service instance lookup to use local port so that it works when
it is accessed through port forwarding.
This fixes:
@@ -127,7 +127,7 @@ public class JettyWebSocketServer extends AbstractJettyWebSocketService implemen
@Override
public Object createWebSocket(ServletUpgradeRequest servletUpgradeRequest, ServletUpgradeResponse servletUpgradeResponse) {
final URI requestURI = servletUpgradeRequest.getRequestURI();
- final int port = requestURI.getPort();
+ final int port = servletUpgradeRequest.getLocalPort();
final JettyWebSocketServer service = portToControllerService.get(port);
if (service == null) {
