* @param forwardPort
* Port of the server we forward the connection to.
*/
public TunnelServer(int listenPort, String forwardHost, int forwardPort) {
try {
listener = new ImmortalServerSocket(listenPort);
logger.info("Listening tunnel connection on port " + listenPort);
forwardAddress = InetAddress.getByName(forwardHost);
this.forwardPort = forwardPort;