add auther for metrics

This commit is contained in:
ginuerzh
2023-10-09 21:27:35 +08:00
parent 61f1f05339
commit 4be7d60147
8 changed files with 93 additions and 152 deletions

View File

@ -135,6 +135,14 @@ func (h *forwardHandler) Handle(ctx context.Context, conn net.Conn, opts ...hand
return err
}
if opts := target.Options(); opts != nil {
switch opts.Network {
case "unix":
network = opts.Network
default:
}
}
log = log.WithFields(map[string]any{
"host": host,
"node": target.Name,