mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -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
|
dispatcher routing.Dispatcher
|
||||||
policyManager policy.Manager
|
policyManager policy.Manager
|
||||||
config *Config
|
config *Config
|
||||||
|
|
||||||
stack *stack.Stack
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetTCPHandler(ctx context.Context, dispatcher routing.Dispatcher, policyManager policy.Manager, config *Config) StackOption {
|
func SetTCPHandler(ctx context.Context, dispatcher routing.Dispatcher, policyManager policy.Manager, config *Config) StackOption {
|
||||||
|
@ -22,8 +22,6 @@ type UDPHandler struct {
|
|||||||
dispatcher routing.Dispatcher
|
dispatcher routing.Dispatcher
|
||||||
policyManager policy.Manager
|
policyManager policy.Manager
|
||||||
config *Config
|
config *Config
|
||||||
|
|
||||||
stack *stack.Stack
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type udpConn struct {
|
type udpConn struct {
|
||||||
@ -41,7 +39,7 @@ func SetUDPHandler(ctx context.Context, dispatcher routing.Dispatcher, policyMan
|
|||||||
wg := new(waiter.Queue)
|
wg := new(waiter.Queue)
|
||||||
linkedEndpoint, err := r.CreateEndpoint(wg)
|
linkedEndpoint, err := r.CreateEndpoint(wg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO: log
|
newError("failed to create endpoint: ", err).WriteToLog(session.ExportIDToError(ctx))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user