caojianfei
caojianfei
### Discussed in https://github.com/austintoddj/canvas/discussions/1085 Originally posted by **caojianfei** June 30, 2022 It looks like this:  I have already run `npm run dev`: 
### Issue description  why remote_addr value is 127.0.0.1? and how can i get the client truly ip? ### Environment * apisix version 2.15 * java version 11.0.1 * linux...
``` func Wraps(handler core.Handler, opts ...wrapper.SetWrapOpt) func(*gin.Context) { return func(ctx *gin.Context) { wrapper.HandleHttpInPipeline(wrapper.HandleHttpInPipelineInput{ Req: ctx.Request, RespWriter: wrapper.NewResponseWriter(ctx.Writer), PathParamsFunc: ctx.Param, Handler: handler, Opts: opts, }) } } ``` 这个包装函数是不是得传递一下 *gin.Context ,不然原始请求上下文都没了,这设计是为什么呀