lint
This commit is contained in:
parent
d70707a668
commit
6dd9be55e2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user