aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake <[email protected]>2019-07-17 13:27:37 -0700
committerRapptz <[email protected]>2019-10-17 20:23:24 -0400
commitb4c2b2c06524dc1c0d041f90ca8f88c4ec483627 (patch)
tree80877c46429184cebb948340467f2dbfcfb8d529
parentProperly populate __slots__ for derived user types. (diff)
downloaddiscord.py-b4c2b2c06524dc1c0d041f90ca8f88c4ec483627.tar.xz
discord.py-b4c2b2c06524dc1c0d041f90ca8f88c4ec483627.zip
use proper ip for endpoint ip
-rw-r--r--discord/gateway.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 361e1a69..d3c794fc 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -696,6 +696,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)