Replace ws lib on client side

This commit is contained in:
Zoltan Papp 2024-06-09 12:41:52 +02:00
parent ed8def4d9b
commit 8c70b7d7ff
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package client
import (
"context"
"fmt"
ws "github.com/netbirdio/netbird/relay/client/dialer/wsnhooyr"
"io"
"net"
"sync"
@ -10,7 +11,6 @@ import (
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/relay/client/dialer/ws"
"github.com/netbirdio/netbird/relay/messages"
)

View File

@ -75,5 +75,5 @@ func (c *Conn) SetDeadline(t time.Time) error {
}
func (c *Conn) Close() error {
return c.Conn.Close(websocket.StatusNormalClosure, "")
return c.Conn.CloseNow()
}