Fix system stack not passing context to handler

This commit is contained in:
世界 2023-03-12 21:53:45 +08:00
parent 8507bb3a0a
commit 20226b91c9
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -194,7 +194,7 @@ func (s *System) acceptLoop(listener net.Listener) {
} }
} }
go func() { go func() {
s.handler.NewConnection(context.Background(), conn, M.Metadata{ s.handler.NewConnection(s.ctx, conn, M.Metadata{
Source: M.SocksaddrFromNetIP(session.Source), Source: M.SocksaddrFromNetIP(session.Source),
Destination: destination, Destination: destination,
}) })