Fix tun log

This commit is contained in:
世界 2022-09-16 15:32:50 +08:00
parent a2c4d68031
commit f4b2099488
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -190,7 +190,7 @@ func (t *Tun) NewConnection(ctx context.Context, conn net.Conn, upstreamMetadata
if err != nil {
t.NewError(ctx, err)
}
return err
return nil
}
func (t *Tun) NewPacketConnection(ctx context.Context, conn N.PacketConn, upstreamMetadata M.Metadata) error {
@ -212,7 +212,7 @@ func (t *Tun) NewPacketConnection(ctx context.Context, conn N.PacketConn, upstre
if err != nil {
t.NewError(ctx, err)
}
return err
return nil
}
func (t *Tun) NewError(ctx context.Context, err error) {