mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-20 15:49:55 +00:00
Grammar fixes
This commit is contained in:
@@ -452,7 +452,7 @@ func (conn *Conn) iCEConnectionIsReady(priority ConnPriority, iceConnInfo ICECon
|
|||||||
|
|
||||||
if conn.wgProxyICE != nil {
|
if conn.wgProxyICE != nil {
|
||||||
if err := conn.wgProxyICE.CloseConn(); err != nil {
|
if err := conn.wgProxyICE.CloseConn(); err != nil {
|
||||||
conn.log.Warnf("failed to close depracated wg proxy conn: %v", err)
|
conn.log.Warnf("failed to close deprecated wg proxy conn: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
conn.wgProxyICE = wgProxy
|
conn.wgProxyICE = wgProxy
|
||||||
@@ -549,7 +549,7 @@ func (conn *Conn) relayConnectionIsReady(rci RelayConnInfo) {
|
|||||||
|
|
||||||
if conn.wgProxyRelay != nil {
|
if conn.wgProxyRelay != nil {
|
||||||
if err := conn.wgProxyRelay.CloseConn(); err != nil {
|
if err := conn.wgProxyRelay.CloseConn(); err != nil {
|
||||||
conn.log.Warnf("failed to close depracated wg proxy conn: %v", err)
|
conn.log.Warnf("failed to close deprecated wg proxy conn: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
conn.wgProxyRelay = wgProxy
|
conn.wgProxyRelay = wgProxy
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ func (isf *internalStopFlag) isSet() bool {
|
|||||||
return isf.stop
|
return isf.stop
|
||||||
}
|
}
|
||||||
|
|
||||||
// Msg carry the payload from the server to the client. With this sturct, the net.Conn can free the buffer.
|
// Msg carry the payload from the server to the client. With this struct, the net.Conn can free the buffer.
|
||||||
type Msg struct {
|
type Msg struct {
|
||||||
Payload []byte
|
Payload []byte
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ func MarshalHelloMsg(peerID []byte, additions []byte) ([]byte, error) {
|
|||||||
// authenticate the client with the server.
|
// authenticate the client with the server.
|
||||||
func UnmarshalHelloMsg(msg []byte) ([]byte, []byte, error) {
|
func UnmarshalHelloMsg(msg []byte) ([]byte, []byte, error) {
|
||||||
if len(msg) < headerSizeHello {
|
if len(msg) < headerSizeHello {
|
||||||
return nil, nil, fmt.Errorf("invalid 'hello' messge")
|
return nil, nil, fmt.Errorf("invalid 'hello' message")
|
||||||
}
|
}
|
||||||
if !bytes.Equal(msg[1:5], magicHeader) {
|
if !bytes.Equal(msg[1:5], magicHeader) {
|
||||||
return nil, nil, fmt.Errorf("invalid magic header")
|
return nil, nil, fmt.Errorf("invalid magic header")
|
||||||
|
|||||||
Reference in New Issue
Block a user