feat: 添加数据库资产、命令拦截器、授权资产等功能,修复GitHub Actions工作流
This commit is contained in:
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"encoding/pem"
|
||||
"crypto/x509"
|
||||
"encoding/pem"
|
||||
|
||||
"next-terminal/server/repository"
|
||||
"next-terminal/server/service"
|
||||
@@ -57,8 +57,8 @@ func (api PropertyApi) SendMailEndpoint(c echo.Context) error {
|
||||
|
||||
func (api PropertyApi) ClientIPsEndpoint(c echo.Context) error {
|
||||
return Success(c, map[string]string{
|
||||
"direct": c.RealIP(),
|
||||
"x-real-ip": c.Request().Header.Get("X-Real-IP"),
|
||||
"direct": c.RealIP(),
|
||||
"x-real-ip": c.Request().Header.Get("X-Real-IP"),
|
||||
"x-forwarded-for": c.Request().Header.Get("X-Forwarded-For"),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user