vendor: udpate

This commit is contained in:
fatedier
2018-05-08 02:13:30 +08:00
parent 39089cf262
commit 8a6d6c534a
99 changed files with 58 additions and 10003 deletions

View File

@@ -14,8 +14,11 @@
package errors
import "errors"
import (
"errors"
)
var (
ErrMsgType = errors.New("message type error")
ErrMsgType = errors.New("message type error")
ErrCtlClosed = errors.New("control is closed")
)

View File

@@ -21,7 +21,7 @@ import (
"fmt"
"reflect"
"github.com/fatedier/frp/utils/errors"
"github.com/fatedier/frp/models/errors"
)
func unpack(typeByte byte, buffer []byte, msgIn Message) (msg Message, err error) {

View File

@@ -22,7 +22,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/fatedier/frp/utils/errors"
"github.com/fatedier/frp/models/errors"
)
type TestStruct struct{}

View File

@@ -20,8 +20,9 @@ import (
"net"
"sync"
"github.com/fatedier/frp/utils/errors"
frpNet "github.com/fatedier/frp/utils/net"
"github.com/fatedier/golib/errors"
)
// Creators is used for create plugins to handle connections.

View File

@@ -21,8 +21,9 @@ import (
"time"
"github.com/fatedier/frp/models/msg"
"github.com/fatedier/frp/utils/errors"
"github.com/fatedier/frp/utils/pool"
"github.com/fatedier/golib/errors"
"github.com/fatedier/golib/pool"
)
func NewUdpPacket(buf []byte, laddr, raddr *net.UDPAddr) *msg.UdpPacket {