From 4a31725ff24c06b689376984f7b55a9161af47b6 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 26 Nov 2001 23:46:47 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/micasa/client/MiCasaApp.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/micasa/client/MiCasaApp.java b/src/java/com/threerings/micasa/client/MiCasaApp.java index f70654312..fb6957fc3 100644 --- a/src/java/com/threerings/micasa/client/MiCasaApp.java +++ b/src/java/com/threerings/micasa/client/MiCasaApp.java @@ -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) {