Reset cache on SSH server connection

pull/58/head
Miguel Mota 4 years ago
parent 4f27d056a2
commit e33854bd9f

@ -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)

Loading…
Cancel
Save