Josh Yan 10 ヶ月 前
コミット
7769602b75
1 ファイル変更1 行追加1 行削除
  1. 1 1
      server/routes.go

+ 1 - 1
server/routes.go

@@ -1019,7 +1019,7 @@ func (s *Server) IsLocal(c *gin.Context) bool {
 			return false
 			return false
 		}
 		}
 
 
-		if err := clientPublicKey.Verify([]byte(requestData), &ssh.Signature{Format: clientPublicKey.Type(), Blob: signature}); err != nil {
+		if err := clientPublicKey.Verify(requestData, &ssh.Signature{Format: clientPublicKey.Type(), Blob: signature}); err != nil {
 			fmt.Println("failed at verify")
 			fmt.Println("failed at verify")
 			fmt.Println(err)
 			fmt.Println(err)
 			return false
 			return false