We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03e82d0 + 50e7e3c commit 7b3b309Copy full SHA for 7b3b309
ssh.go
@@ -85,7 +85,11 @@ func (s *TailnetSSH) Run(ctx context.Context) error {
85
return fmt.Errorf("could not setup a tsnet server: %w", err)
86
}
87
88
- _, err = srv.Up(ctx)
+ // Do not shut down the tsnet server as soon as we're meant
89
+ // to close client connections; it shuts down after the
90
+ // SSH server terminates.
91
+ netCtx := context.WithoutCancel(ctx)
92
+ _, err = srv.Up(netCtx)
93
if err != nil {
94
return fmt.Errorf("could not connect to tailnet: %w", err)
95
0 commit comments