mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
feat: add error log for create endpoint
This commit is contained in:
parent
98463db088
commit
7a42380599
@ -38,8 +38,6 @@ type TCPHandler struct {
|
||||
dispatcher routing.Dispatcher
|
||||
policyManager policy.Manager
|
||||
config *Config
|
||||
|
||||
stack *stack.Stack
|
||||
}
|
||||
|
||||
func SetTCPHandler(ctx context.Context, dispatcher routing.Dispatcher, policyManager policy.Manager, config *Config) StackOption {
|
||||
|
@ -22,8 +22,6 @@ type UDPHandler struct {
|
||||
dispatcher routing.Dispatcher
|
||||
policyManager policy.Manager
|
||||
config *Config
|
||||
|
||||
stack *stack.Stack
|
||||
}
|
||||
|
||||
type udpConn struct {
|
||||
@ -41,7 +39,7 @@ func SetUDPHandler(ctx context.Context, dispatcher routing.Dispatcher, policyMan
|
||||
wg := new(waiter.Queue)
|
||||
linkedEndpoint, err := r.CreateEndpoint(wg)
|
||||
if err != nil {
|
||||
// TODO: log
|
||||
newError("failed to create endpoint: ", err).WriteToLog(session.ExportIDToError(ctx))
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user