- remove comment
This commit is contained in:
@@ -45,7 +45,7 @@ func (ctx *Context) GetAccessUUID() string {
|
|||||||
func (ctx *Context) GetRealRemoteIP() (ip string) {
|
func (ctx *Context) GetRealRemoteIP() (ip string) {
|
||||||
r := ctx.r
|
r := ctx.r
|
||||||
if r != nil {
|
if r != nil {
|
||||||
globals.SugarLogger.Debugf("GetRealRemoteIP header:%s", utils.Format4Output(r.Header, false))
|
// globals.SugarLogger.Debugf("GetRealRemoteIP header:%s", utils.Format4Output(r.Header, false))
|
||||||
ip = r.Header.Get("X-Forwarded-For")
|
ip = r.Header.Get("X-Forwarded-For")
|
||||||
if ip == "" {
|
if ip == "" {
|
||||||
ip = r.Header.Get("X-real-ip")
|
ip = r.Header.Get("X-real-ip")
|
||||||
|
|||||||
Reference in New Issue
Block a user