Skip to content

Commit 482d7cc

Browse files
committed
[+] Allow host override
1 parent b586eee commit 482d7cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/FutariLobby.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ fun Application.configureRouting() = routing {
7979
})
8080
}
8181

82+
val hostOverride = System.getenv("HOST_OVERRIDE")
83+
8284
get("/info") {
8385
mapOf(
84-
"relayHost" to call.request.local.serverHost,
86+
"relayHost" to (hostOverride ?: call.request.local.serverHost),
8587
"relayPort" to 20101
8688
).ok()
8789
}

0 commit comments

Comments
 (0)