From: zacheiss Date: Mon, 4 Feb 2008 22:45:02 +0000 (+0000) Subject: Always use port 443. X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/8a8eaf05b8eabc5ef09756e73360cfd3eddd0a28 Always use port 443. --- diff --git a/clients/regapplet/regapplet/Worker.java b/clients/regapplet/regapplet/Worker.java index 8e7504ed..6db2e1ee 100644 --- a/clients/regapplet/regapplet/Worker.java +++ b/clients/regapplet/regapplet/Worker.java @@ -75,9 +75,8 @@ public class Worker implements Runnable { applet.showMessage("Connecting to Server..."); try { String host; - int port; + int port = 443; // Use https port for firewall traversal. if (applet.isStandalone) { - port = 9001; host = (System.getProperties()).getProperty("host", ""); if (host == null || host.equals("")) { System.err.println("Cannot learn host name (application) using localhost"); @@ -86,7 +85,6 @@ public class Worker implements Runnable { } else { URL cb = applet.getCodeBase(); String protocol = cb.getProtocol(); - port = 443; // Use https port for firewall traversal. if (protocol.equals("file") || protocol.equals("FILE")) { System.err.println("Applet: FILE protocol in use, connecting to localhost"); host = "localhost";