]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commit
Upstream: reset local address in case of error.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 23 Oct 2025 14:21:57 +0000 (18:21 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Fri, 24 Oct 2025 13:49:04 +0000 (17:49 +0400)
commit364a94ecec13037126f28f91cf8f290979ffc229
tree77047e1fe845be4ae7e788a4f4daaab84d1d15f7
parent42ca3a4576a32d0a912b0bba4088b8169f55ab2d
Upstream: reset local address in case of error.

After f10bc5a763bb the address was set to NULL only when local address was
not specified at all.  In case complex value evaluated to an empty or
invalid string, local address remained unchanged.  Currenrly this is not
a problem since the value is only set once.  This change is a preparation
for being able to change the local address after initial setting.
src/http/ngx_http_upstream.c
src/stream/ngx_stream_proxy_module.c