reverseproxy: Fix health_port being ignored in health checks#7533
reverseproxy: Fix health_port being ignored in health checks#7533francislavoie merged 2 commits intocaddyserver:masterfrom
health_port being ignored in health checks#7533Conversation
|
Thanks. Can your LLM add a test case? Annnd... ideally, explain when/why it broke? |
health_port being ignored in health checks
|
I made my LLM add a test case. I really couldn't understand the algorithm behind the code. It's best to paste what LLM figured out: BugCommit FixAdded an } else if upstream.activeHealthCheckPort != 0 {
// health_port overrides the port; addr has already been updated
// with the health port, so use its address for dialing
dialInfoUpstream = &Upstream{
Dial: addr.JoinHostPort(0),
}
} |
Fix #7524
Assistance Disclosure
"I used Claude Sonnet 4.6 for identifying and fixing the bug, then I tested the compiled binary."