refactor(crypto): remove timestamp check in GetPublicKey function #1274, #1275

This commit is contained in:
0xJacky
2025-07-30 20:02:20 +08:00
parent 552cf5c0e8
commit 5cef9412d0

View File

@@ -2,7 +2,6 @@ package crypto
import (
"net/http"
"time"
"github.com/0xJacky/Nginx-UI/internal/crypto"
"github.com/gin-gonic/gin"
@@ -21,11 +20,6 @@ func GetPublicKey(c *gin.Context) {
return
}
if time.Now().Unix()-data.Timestamp > 10 {
cosy.ErrHandler(c, crypto.ErrTimeout)
return
}
params, err := crypto.GetCryptoParams()
if err != nil {
cosy.ErrHandler(c, err)