Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung authored Nov 19, 2024
1 parent 6553ce7 commit 4444be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/opendota/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4444be2

Please sign in to comment.