mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-01 00:11:36 +01:00
Replace ws lib on client side
This commit is contained in:
parent
ed8def4d9b
commit
8c70b7d7ff
@ -3,6 +3,7 @@ package client
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
ws "github.com/netbirdio/netbird/relay/client/dialer/wsnhooyr"
|
||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"sync"
|
"sync"
|
||||||
@ -10,7 +11,6 @@ import (
|
|||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/netbirdio/netbird/relay/client/dialer/ws"
|
|
||||||
"github.com/netbirdio/netbird/relay/messages"
|
"github.com/netbirdio/netbird/relay/messages"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -75,5 +75,5 @@ func (c *Conn) SetDeadline(t time.Time) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Conn) Close() error {
|
func (c *Conn) Close() error {
|
||||||
return c.Conn.Close(websocket.StatusNormalClosure, "")
|
return c.Conn.CloseNow()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user