Skip to content

Commit 5c65a3e

Browse files
committed
fix(voice): don't strip port from voice websocket endpoints (#1301)
1 parent 3672dd8 commit 5c65a3e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/1301.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Avoid stripping port from voice websocket endpoints.

disnake/voice_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ async def on_voice_server_update(self, data: VoiceServerUpdateEvent) -> None:
282282
)
283283
return
284284

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

0 commit comments

Comments
 (0)