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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user