Skip to content

Commit f3d0ef3

Browse files
authored
Keep port that Discord sends (#8)
1 parent d348842 commit f3d0ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/voice_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ async def on_voice_server_update(self, data: VoiceServerUpdatePayload) -> None:
323323
)
324324
return
325325

326-
self.endpoint, _, _ = endpoint.rpartition(":")
326+
self.endpoint = endpoint
327327
if self.endpoint.startswith("wss://"):
328328
# Just in case, strip it off since we're going to add it later
329329
self.endpoint = self.endpoint[6:]

0 commit comments

Comments
 (0)