Skip to content

Commit

Permalink
Fix tun log
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Sep 16, 2022
1 parent a2c4d68 commit f4b2099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inbound/tun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) {
Expand Down

0 comments on commit f4b2099

Please sign in to comment.