mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
all: log when client info included in the request
This commit is contained in:
@@ -237,6 +237,7 @@ func (p *prog) proxy(ctx context.Context, upstreams []string, failoverRcodes []i
|
|||||||
if upstreamConfig.UpstreamSendClientInfo() {
|
if upstreamConfig.UpstreamSendClientInfo() {
|
||||||
ci := router.GetClientInfoByMac(macFromMsg(msg))
|
ci := router.GetClientInfoByMac(macFromMsg(msg))
|
||||||
if ci != nil {
|
if ci != nil {
|
||||||
|
ctrld.Log(ctx, mainLog.Debug(), "including client info with the request")
|
||||||
ctx = context.WithValue(ctx, ctrld.ClientInfoCtxKey{}, ci)
|
ctx = context.WithValue(ctx, ctrld.ClientInfoCtxKey{}, ci)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user