From 82d7d802ff471202042b91dd1d3015aaa1db24c0 Mon Sep 17 00:00:00 2001 From: pandaninjas Date: Thu, 20 Apr 2023 22:13:24 -0400 Subject: [PATCH] Allow configurable ingress URI --- src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt b/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt index d1e62ca..ee3c15e 100644 --- a/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt +++ b/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt @@ -42,7 +42,7 @@ data class DomainAssignedMessage(val DomainAssigned: String) data class ChannelOpenMessage(val ChannelOpen: List) data class ChannelClosedMessage(val ChannelClosed: Number) -class E4mcRelayHandler: WebSocketClient(URI("wss://ingress.e4mc.link")) { +class E4mcRelayHandler: WebSocketClient(URI(System.getProperty("vg.skye.e4mc_minecraft.ingress_uri", "wss://ingress.e4mc.link"))) { private val gson = Gson() private val childChannels = mutableMapOf() private val messageQueue = mutableMapOf>()