grim/hgkeeper

Allow symlinks for the host keys

2019-09-12, Gary Kramlich
f2dd4c2888e2
Parents c27ecd0c7904
Children c6594aabeab3
Allow symlinks for the host keys
  • +1 -1
    ssh/keys.go
  • --- a/ssh/keys.go Thu Sep 12 23:16:59 2019 -0500
    +++ b/ssh/keys.go Thu Sep 12 23:55:38 2019 -0500
    @@ -18,7 +18,7 @@
    found := false
    for _, file := range files {
    - if file.Mode().IsRegular() {
    + if !file.Mode().IsDir() {
    path := filepath.Join(hostKeysPath, file.Name())
    data, err := ioutil.ReadFile(path)