summary refs log tree commit diff
path: root/webrtc/src/opcodes/Identify.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-21 14:29:18 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-21 14:29:18 +1000
commitebbb2653ee30aa01505c49cd3dfa673706e94e2b (patch)
tree87ad7a11a52ccfa234a8dde2421074cd664d82d7 /webrtc/src/opcodes/Identify.ts
parentSentry route filtering (diff)
downloadserver-ebbb2653ee30aa01505c49cd3dfa673706e94e2b.tar.xz
Random webrtc crap
Diffstat (limited to '')
-rw-r--r--webrtc/src/opcodes/Identify.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/src/opcodes/Identify.ts b/webrtc/src/opcodes/Identify.ts

index 7e579027..19a575ab 100644 --- a/webrtc/src/opcodes/Identify.ts +++ b/webrtc/src/opcodes/Identify.ts
@@ -1,6 +1,6 @@ import { CLOSECODES, Payload, Send, WebSocket } from "@fosscord/gateway"; import { validateSchema, VoiceIdentifySchema, VoiceState } from "@fosscord/util"; -import { endpoint, getClients, VoiceOPCodes } from "@fosscord/webrtc"; +import { endpoint, getClients, VoiceOPCodes, PublicIP } from "@fosscord/webrtc"; import SemanticSDP from "semantic-sdp"; const defaultSDP = require("./sdp.json"); @@ -8,7 +8,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { clearTimeout(this.readyTimeout); const { server_id, user_id, session_id, token, streams, video } = validateSchema("VoiceIdentifySchema", data.d) as VoiceIdentifySchema; - const voiceState = await VoiceState.findOne({ guild_id: server_id, user_id, token, session_id }); + const voiceState = await VoiceState.findOne({ where: { guild_id: server_id, user_id, token, session_id } }); if (!voiceState) return this.close(CLOSECODES.Authentication_failed); this.user_id = user_id; @@ -53,7 +53,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { "xsalsa20_poly1305_suffix", "xsalsa20_poly1305" ], - ip: "127.0.0.1", + ip: PublicIP, experiments: [] } });