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.
}
if (val.len == 0) {
+ u->peer.local = NULL;
return NGX_OK;
}
if (rc != NGX_OK) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"invalid local address \"%V\"", &val);
+ u->peer.local = NULL;
return NGX_OK;
}
}
if (val.len == 0) {
+ u->peer.local = NULL;
return NGX_OK;
}
if (rc != NGX_OK) {
ngx_log_error(NGX_LOG_ERR, s->connection->log, 0,
"invalid local address \"%V\"", &val);
+ u->peer.local = NULL;
return NGX_OK;
}