Fix shared connections inheriting external interrupt mark

This commit is contained in:
世界
2026-10-23 19:57:08 +08:00
parent 03335338a0
commit 0164ce7b8e
8 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ func (s *Outbound) connect(ctx context.Context) (client *ssh.Client, err error)
return s.client, nil
}
conn, err := s.dialer.DialContext(ctx, N.NetworkTCP, s.serverAddr)
conn, err := s.dialer.DialContext(adapter.ContextForMultiplexSession(ctx), N.NetworkTCP, s.serverAddr)
if err != nil {
return nil, err
}