mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-12 04:54:45 +00:00
chore(lint): suppress gosec G704 on operator-configured redis dial
This commit is contained in:
@@ -216,7 +216,7 @@ func (c *respClient) ensureConnLocked(deadline time.Time) error {
|
||||
if dialTimeout <= 0 {
|
||||
return fmt.Errorf("resp: dial %q: %w", c.addr, respDeadlineExceededErr{})
|
||||
}
|
||||
conn, err := net.DialTimeout("tcp", c.addr, dialTimeout)
|
||||
conn, err := net.DialTimeout("tcp", c.addr, dialTimeout) // #nosec G704 -- c.addr is the operator-configured redis address from middleware config, never request-derived
|
||||
if err != nil {
|
||||
return fmt.Errorf("resp: dial %q: %w", c.addr, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user