Skip to content

Commit

Permalink
[+] Allow host override
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Mar 7, 2025
1 parent b586eee commit 482d7cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/FutariLobby.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ fun Application.configureRouting() = routing {
})
}

val hostOverride = System.getenv("HOST_OVERRIDE")

get("/info") {
mapOf(
"relayHost" to call.request.local.serverHost,
"relayHost" to (hostOverride ?: call.request.local.serverHost),
"relayPort" to 20101
).ok()
}
Expand Down

0 comments on commit 482d7cc

Please sign in to comment.