mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 02:03:24 +00:00
Minor code refactoring
Noticed that `KeysDir` variable in ClientConfig structure was ignored.
This commit is contained in:
parent
4ce8d5db0d
commit
3e1506d959
|
@ -216,7 +216,7 @@ func NewClient(c *Config) (tc *TeleportClient, err error) {
|
|||
tc = &TeleportClient{Config: *c}
|
||||
|
||||
// initialize the local agent (auth agent which uses local SSH keys signed by the CA):
|
||||
tc.localAgent, err = NewLocalAgent("", c.Username)
|
||||
tc.localAgent, err = NewLocalAgent(c.KeysDir, c.Username)
|
||||
if err != nil {
|
||||
return nil, trace.Wrap(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue