浏览代码

Update authority/authority.go

Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
Carl Tashian 4 年之前
父节点
当前提交
25cc9a1728
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      authority/authority.go

+ 1 - 1
authority/authority.go

@@ -543,7 +543,7 @@ func (a *Authority) init() error {
 	if tmplVars.SSH.HostKey != nil {
 		log.Printf("SSH Host CA Key: %s\n", ssh.MarshalAuthorizedKey(tmplVars.SSH.HostKey))
 	}
-	if tmplVars.SSH.HostKey != nil {
+	if tmplVars.SSH.UserKey != nil {
 		log.Printf("SSH User CA Key: %s\n", ssh.MarshalAuthorizedKey(tmplVars.SSH.UserKey))
 	}