mirror of https://github.com/apache/nifi.git
NIFI-3561: 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: #1568 Signed-off-by: Andre F de Miranda <trixpan@users.noreply.github.com>
This commit is contained in:
parent
776a00b0be
commit
7c19796eb2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue