From 77b31d79a38447a4a68e5afa8c28345b38d73fef Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 5 Jun 2022 22:02:21 +1000 Subject: More random bullshit --- webrtc/src/opcodes/Identify.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'webrtc/src/opcodes/Identify.ts') diff --git a/webrtc/src/opcodes/Identify.ts b/webrtc/src/opcodes/Identify.ts index 68452d4f..ef0386a7 100644 --- a/webrtc/src/opcodes/Identify.ts +++ b/webrtc/src/opcodes/Identify.ts @@ -33,18 +33,18 @@ export async function onIdentify(this: Server, socket: WebSocket, data: Identify if (!guild.members.find(x => x.id === user.id)) return socket.close(CLOSECODES.Invalid_intent); - // var transport = this.mediasoupTransports[0] || await this.mediasoupRouters[0].createWebRtcTransport({ - // listenIps: [{ ip: "10.22.64.56" }], - // enableUdp: true, - // }); -7 + var transport = this.mediasoupTransports[0] || await this.mediasoupRouters[0].createWebRtcTransport({ + listenIps: [{ ip: "10.22.64.146" }], + enableUdp: true, + }); + socket.send(JSON.stringify({ op: VoiceOPCodes.READY, d: { - streams: data.d.streams ? [...data.d.streams.map(x => ({ ...x, rtx_ssrc: Math.floor(Math.random() * 10000), ssrc: Math.floor(Math.random() * 10000), active: false, }))] : undefined, + streams: data.d.streams ? [...data.d.streams.map(x => ({ ...x, rtx_ssrc: Math.floor(Math.random() * 10000), ssrc: Math.floor(Math.random() * 10000), active: true, }))] : undefined, ssrc: Math.floor(Math.random() * 10000), - ip: "127.0.0.1",//transport.iceCandidates[0].ip, - port: 50001,//transport.iceCandidates[0].port, + ip: transport.iceCandidates[0].ip, + port: transport.iceCandidates[0].port, modes: [ "aead_aes256_gcm_rtpsize", "aead_aes256_gcm", -- cgit 1.5.1