Fix for SSL example

This commit is contained in:
Frédéric Brégier 2012-07-22 19:36:36 +03:00
parent 2d6dbd5a92
commit b60a9f6532

View File

@ -24,6 +24,7 @@ import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;
public class HttpUploadServer {
private final int port;
public static boolean isSSL;
public HttpUploadServer(int port) {
this.port = port;
@ -50,6 +51,9 @@ public class HttpUploadServer {
} else {
port = 8080;
}
if (args.length > 1) {
isSSL = true;
}
new HttpUploadServer(port).run();
}
}