Josh Yan 10 months ago
parent
commit
7769602b75
1 changed files with 1 additions and 1 deletions
  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
 		}
 
-		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(err)
 			return false