add client addr for auth plugin
This commit is contained in:
1 parent
1760151500
commit
ddc3c9392e
11 files changed
+51
-13
No files matched your search
@@ -88,6 +88,9 @@ func (h *http2Handler) Handle(ctx context.Context, conn net.Conn, opts ...handle
|
||||
log.Error(err)
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = auth_util.ContextWithClientAddr(ctx, auth_util.ClientAddr(conn.RemoteAddr().String()))
|
||||
|
||||
md := v.Metadata()
|
||||
return h.roundTrip(ctx,
|
||||
md.Get("w").(http.ResponseWriter),
|
||||
|
||||
Reference in new issue
Block a user