m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/pl/edu/mimuw')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java
index 557ba39..db9c09f 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java
@@ -34,7 +34,8 @@ public class ClientController {
ClientController() {
try {
- Registry registry = LocateRegistry.getRegistry("localhost");
+ String hostname = System.getProperty("agent_hostname");
+ Registry registry = LocateRegistry.getRegistry(hostname);
this.api = (Api) registry.lookup("Api");
} catch (Exception e) {
System.err.println("Client exception:");