feat(voice): use Dialer for connections (#1220)
Use Session.Dialer for WebSocket connections.
This commit is contained in:
parent
f7309cdb9e
commit
7c87035a71
1 changed files with 1 additions and 1 deletions
2
voice.go
2
voice.go
|
@ -304,7 +304,7 @@ func (v *VoiceConnection) open() (err error) {
|
|||
// Connect to VoiceConnection Websocket
|
||||
vg := "wss://" + strings.TrimSuffix(v.endpoint, ":80")
|
||||
v.log(LogInformational, "connecting to voice endpoint %s", vg)
|
||||
v.wsConn, _, err = websocket.DefaultDialer.Dial(vg, nil)
|
||||
v.wsConn, _, err = v.session.Dialer.Dial(vg, nil)
|
||||
if err != nil {
|
||||
v.log(LogWarning, "error connecting to voice endpoint %s, %s", vg, err)
|
||||
v.log(LogDebug, "voice struct: %#v\n", v)
|
||||
|
|
Loading…
Reference in a new issue