diff --git a/src/main/java/opendota/Main.java b/src/main/java/opendota/Main.java index 2a6f5e2d..9f6577c0 100644 --- a/src/main/java/opendota/Main.java +++ b/src/main/java/opendota/Main.java @@ -154,7 +154,7 @@ public void run() ip = RegisterTask.shellExec("hostname -i"); } int nproc = Runtime.getRuntime().availableProcessors(); - String postCmd = "curl -X POST -L " + System.getenv().get("SERVICE_REGISTRY_HOST") + "/register/parser/" + ip + ":5600" + "?size=" + nproc; + String postCmd = "curl -X POST -L " + System.getenv().get("SERVICE_REGISTRY_HOST") + "/register/parser/" + ip + ":5600" + "?size=" + nproc + "&key=" + System.getenv().get("RETRIEVER_SECRET"); System.err.println(postCmd); RegisterTask.shellExec(postCmd); } catch (Exception e) {