session: follow Config.Uname → Config.AgentID rename
This commit is contained in:
parent
19939cc074
commit
f75dbc33a7
|
|
@ -206,7 +206,7 @@ func (s *Manager) CreateSession(args []string) (string, error) {
|
|||
AgentsDir: s.cfg.AgentsDir,
|
||||
SessionsDir: s.cfg.SessionsDir,
|
||||
SessionID: sessID,
|
||||
Uname: uname,
|
||||
AgentID: uname,
|
||||
CWD: cwd,
|
||||
Remote: remoteTarget,
|
||||
Runtime: rt,
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ func (s *Manager) restoreSession(ps *agent.PersistedSession) error {
|
|||
AgentsDir: s.cfg.AgentsDir,
|
||||
SessionsDir: s.cfg.SessionsDir,
|
||||
SessionID: sessID,
|
||||
Uname: uname,
|
||||
AgentID: uname,
|
||||
CWD: cwd,
|
||||
Remote: remoteTarget,
|
||||
History: restoredSession,
|
||||
|
|
|
|||
Reference in New Issue