use proper ip for endpoint ip

This commit is contained in:
Jake 2019-07-17 13:27:37 -07:00 committed by GitHub
parent 93f719aeb7
commit 8fdcb4de3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,6 +708,7 @@ class DiscordVoiceWebSocket(websockets.client.WebSocketClientProtocol):
state = self._connection
state.ssrc = data['ssrc']
state.voice_port = data['port']
state.endpoint_ip = data['ip']
packet = bytearray(70)
struct.pack_into('>I', packet, 0, state.ssrc)