mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-05-06 14:03:40 +08:00
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user