diff --git a/build.gradle.kts b/build.gradle.kts index 5b3cabf..a47b9ee 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,7 +30,7 @@ sourceSets { implementation(group="org.jetbrains", name="annotations", version="20.1.0") implementation(project(":pswgcommon")) api(group="me.joshlarson", name="jlcommon-network", version="1.1.1") - implementation(group="me.joshlarson", name="websocket", version="0.9.3") + implementation(group="me.joshlarson", name="websocket", version="0.9.5") } } test { diff --git a/src/main/java/com/projectswg/forwarder/resources/server/HolocoreConnection.kt b/src/main/java/com/projectswg/forwarder/resources/server/HolocoreConnection.kt index a2c568f..96574bc 100644 --- a/src/main/java/com/projectswg/forwarder/resources/server/HolocoreConnection.kt +++ b/src/main/java/com/projectswg/forwarder/resources/server/HolocoreConnection.kt @@ -140,7 +140,7 @@ class HolocoreConnection(private val intentManager: IntentManager, Log.t("Received login packet - upgrading to websocket") connectionUri = forwarderData.connectionUri outputStream = socket.getOutputStream() - wsProtocol = WebSocketClientProtocol(WebsocketHandler(), connectionUri.rawPath + "?" + connectionUri.rawQuery, ::writeToOutputStream, socket::close) + wsProtocol = WebSocketClientProtocol(WebsocketHandler(), connectionUri.rawPath + "?" + connectionUri.rawQuery, initialConnectionUri.host, ::writeToOutputStream, socket::close) return true }