Skip to content

Commit

Permalink
make http/s default ports constants
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 16, 2011
1 parent 8672265 commit a6df10a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -157,8 +157,8 @@ public static void main(String... args) throws Exception {
try {
CommandLine line = parser.parse(options, args);

int port = 31415;
int securePort = 31417;
int port = SymmetricWebServer.DEFAULT_HTTP_PORT;
int securePort = SymmetricWebServer.DEFAULT_HTTPS_PORT;
int maxIdleTime = 900000;
String propertiesFile = null;
boolean noNio = false;
Expand Down
Expand Up @@ -63,7 +63,11 @@ public class SymmetricWebServer {
protected static final ILog log = LogFactory.getLog(SymmetricWebServer.class);

protected static final String DEFAULT_WEBAPP_DIR = "../web";


public static final int DEFAULT_HTTP_PORT = 31415;

public static final int DEFAULT_HTTPS_PORT = 31417;

/**
* The type of HTTP connection to create for this SymmetricDS web server
*/
Expand Down

0 comments on commit a6df10a

Please sign in to comment.