Skip to content

Commit

Permalink
adamfisk#131 Fixed FTEMain
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Jan 31, 2014
1 parent e5d3ada commit 70c3f81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/java/org/littleshoot/proxy/ChainedMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void lookupChainedProxies(HttpRequest httpRequest,
@Override
public InetSocketAddress getChainedProxyAddress() {
return new InetSocketAddress(LOCALHOST,
LITTLEPROXY_UPSTREAM_PORT);
getUpstreamPort());
}

@Override
Expand Down Expand Up @@ -86,5 +86,9 @@ public SSLEngine newSslEngine() {
.start();

}

protected int getUpstreamPort() {
return LITTLEPROXY_UPSTREAM_PORT;
}

}
5 changes: 5 additions & 0 deletions src/test/java/org/littleshoot/proxy/FTEMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public void run() throws Exception {
"--proxy_port", LITTLEPROXY_UPSTREAM_PORT);
}

@Override
protected int getUpstreamPort() {
return FTEPROXY_CLIENT_PORT;
}

private void fteProxy(Object... args) throws Exception {
Executor cmdExec = new DefaultExecutor();
cmdExec.setStreamHandler(new PumpStreamHandler(System.out, System.err,
Expand Down

0 comments on commit 70c3f81

Please sign in to comment.