Allow the specification of the server host via a system property.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@637 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-11-26 23:46:47 +00:00
parent 396e1dd3c3
commit 4a31725ff2
@@ -1,5 +1,5 @@
//
// $Id: MiCasaApp.java,v 1.3 2001/10/25 23:21:32 mdb Exp $
// $Id: MiCasaApp.java,v 1.4 2001/11/26 23:46:47 mdb Exp $
package com.threerings.micasa.client;
@@ -39,6 +39,12 @@ public class MiCasaApp
Client client = _client.getContext().getClient();
String server = System.getProperty("server");
if (server != null) {
// indicate which server to which we should connect
client.setServer(server, Client.DEFAULT_SERVER_PORT);
}
// we want to exit when we logged off or failed to log on
client.addObserver(new ClientAdapter() {
public void clientFailedToLogon (Client c, Exception cause) {