proxy progress
This commit is contained in:
parent
fed94f2147
commit
607152a702
|
@ -203,7 +203,7 @@ public class ServerTest {
|
|||
// start authenticator
|
||||
|
||||
int authenticatorPort = 7004; // local port on which authenticator accepts connections from Tuner Studio
|
||||
LocalApplicationProxy.startAndRun(logger, controllerPort, applicationRequest, authenticatorPort);
|
||||
LocalApplicationProxy.startAndRun(logger, serverPortForRemoteUsers, applicationRequest, authenticatorPort);
|
||||
|
||||
|
||||
CountDownLatch connectionEstablishedCountDownLatch = new CountDownLatch(1);
|
||||
|
|
|
@ -21,12 +21,12 @@ public class LocalApplicationProxy {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param serverPortForRemoteUsers port on which rusEFI proxy accepts authenticator connections
|
||||
* @param applicationRequest remote session we want to connect to
|
||||
* @param authenticatorPort local port we would bind for TunerStudio to connect to
|
||||
* @param authenticatorToProxyStream
|
||||
*/
|
||||
static void startAndRun(Logger logger, int controllerPort, ApplicationRequest applicationRequest, int authenticatorPort) throws IOException {
|
||||
IoStream authenticatorToProxyStream = new TcpIoStream(logger, SSLSocketFactory.getDefault().createSocket(NetworkConnector.RUSEFI_PROXY_HOSTNAME, controllerPort));
|
||||
static void startAndRun(Logger logger, int serverPortForRemoteUsers, ApplicationRequest applicationRequest, int authenticatorPort) throws IOException {
|
||||
IoStream authenticatorToProxyStream = new TcpIoStream(logger, SSLSocketFactory.getDefault().createSocket(NetworkConnector.RUSEFI_PROXY_HOSTNAME, serverPortForRemoteUsers));
|
||||
LocalApplicationProxy localApplicationProxy = new LocalApplicationProxy(logger, applicationRequest);
|
||||
localApplicationProxy.run(authenticatorToProxyStream);
|
||||
|
||||
|
|
Loading…
Reference in New Issue