Add wireguard outbound and test

This commit is contained in:
世界 committed 2022-08-16 23:39:11 +08:00
1 parent ca94a2ddcb
commit d6a0aa7ccf
20 files changed
+724 -55

No files matched your search

+1 -1
View File
@@ -325,7 +325,7 @@ func (a *myInboundAdapter) NewError(ctx context.Context, err error) {
func NewError(logger log.ContextLogger, ctx context.Context, err error) {
common.Close(err)
if E.IsClosedOrCanceled(err) {
logger.TraceContext(ctx, "connection closed: ", err)
logger.DebugContext(ctx, "connection closed: ", err)
return
}
logger.ErrorContext(ctx, err)