Skip to content

Commit

Permalink
Reset cache on SSH server connection
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jul 26, 2020
1 parent 4f27d05 commit e33854b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cointop/ssh/server.go
Expand Up @@ -75,7 +75,7 @@ func (s *Server) ListenAndServe() error {
cmdCtx, cancelCmd := context.WithCancel(sshSession.Context())
defer cancelCmd()

cmd := exec.CommandContext(cmdCtx, s.executableBinary, "--config", configPath)
cmd := exec.CommandContext(cmdCtx, s.executableBinary, "--reset", "--config", configPath)
cmd.Env = append(sshSession.Environ(), fmt.Sprintf("TERM=%s", ptyReq.Term))

f, err := pty.Start(cmd)
Expand Down

0 comments on commit e33854b

Please sign in to comment.