mirror of
https://github.com/ProjectSWGCore/forwarder.git
synced 2026-01-16 23:04:28 -05:00
Now supported setting the host parameter on the websocket connection
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user