From 4444be2c44188be0514153909026cc64fdf23744 Mon Sep 17 00:00:00 2001 From: Howard Chung Date: Tue, 19 Nov 2024 03:37:16 -0800 Subject: [PATCH] Update Main.java --- src/main/java/opendota/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/opendota/Main.java b/src/main/java/opendota/Main.java index c569d108..d35dcc7d 100644 --- a/src/main/java/opendota/Main.java +++ b/src/main/java/opendota/Main.java @@ -152,7 +152,7 @@ public void run() String ip = ""; if (System.getenv().containsKey("EXTERNAL")) { // If configured as external, request external IP and report it - ip = RegisterTask.shellExec("curl api.ipify.org"); + ip = RegisterTask.shellExec("curl " + System.getenv().get("SERVICE_REGISTRY_HOST") + "/ip"); } else { // Otherwise, use hostname -i to get internal IP ip = RegisterTask.shellExec("hostname -i");