File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -254,16 +254,16 @@ async def establish_voice_socket(self) -> None:
254254 self .socket = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
255255 self .socket .setblocking (False )
256256
257- packet = bytearray (70 )
257+ packet = bytearray (74 )
258258 struct .pack_into (">H" , packet , 0 , 1 ) # 1 = Send
259259 struct .pack_into (">H" , packet , 2 , 70 ) # 70 = Length
260260 struct .pack_into (">I" , packet , 4 , self .ssrc )
261261
262262 self .socket .sendto (packet , (self .voice_ip , self .voice_port ))
263- resp = await self .loop .sock_recv (self .socket , 70 )
263+ resp = await self .loop .sock_recv (self .socket , 74 )
264264 self .logger .debug (f"Voice Initial Response Received: { resp } " )
265265
266- ip_start = 4
266+ ip_start = 8
267267 ip_end = resp .index (0 , ip_start )
268268 self .me_ip = resp [ip_start :ip_end ].decode ("ascii" )
269269
You can’t perform that action at this time.
0 commit comments