@@ -0,0 +1,13 @@
|
||||
package ip
|
||||
|
||||
import (
|
||||
"91porn-server/common/constant"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// RealIP 获取真实IP
|
||||
func RealIP(c *gin.Context) {
|
||||
ip := c.ClientIP()
|
||||
c.Set(constant.CtxIP, ip)
|
||||
}
|
||||
Reference in New Issue
Block a user