Fix for SSL example
This commit is contained in:
parent
2d6dbd5a92
commit
b60a9f6532
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user