mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-23 06:54:52 +02:00
Adds an Origin tag to be able to connect with Snort's relay.
This commit is contained in:
parent
f4b366c4bd
commit
bf48428fe3
@ -54,7 +54,7 @@ class Relay(
|
||||
if (socket != null) return
|
||||
|
||||
try {
|
||||
val request = Request.Builder().url(url.trim()).build()
|
||||
val request = Request.Builder().header("Origin", "amethyst.social").url(url.trim()).build()
|
||||
val listener = object : WebSocketListener() {
|
||||
|
||||
override fun onOpen(webSocket: WebSocket, response: Response) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user