nghttpx: Disallow copying Config
This commit is contained in:
parent
25ea41972a
commit
4749e66c67
|
@ -1272,8 +1272,6 @@ constexpr auto DEFAULT_ACCESSLOG_FORMAT = StringRef::from_lit(
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void fill_default_config(Config *config) {
|
void fill_default_config(Config *config) {
|
||||||
*config = {};
|
|
||||||
|
|
||||||
config->num_worker = 1;
|
config->num_worker = 1;
|
||||||
config->conf_path = "/etc/nghttpx/nghttpx.conf";
|
config->conf_path = "/etc/nghttpx/nghttpx.conf";
|
||||||
config->pid = getpid();
|
config->pid = getpid();
|
||||||
|
|
|
@ -706,8 +706,14 @@ struct APIConfig {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Config {
|
struct Config {
|
||||||
|
Config() = default;
|
||||||
~Config();
|
~Config();
|
||||||
|
|
||||||
|
Config(Config &&) = delete;
|
||||||
|
Config(const Config &&) = delete;
|
||||||
|
Config &operator=(Config &&) = delete;
|
||||||
|
Config &operator=(const Config &&) = delete;
|
||||||
|
|
||||||
HttpProxy downstream_http_proxy;
|
HttpProxy downstream_http_proxy;
|
||||||
HttpConfig http;
|
HttpConfig http;
|
||||||
Http2Config http2;
|
Http2Config http2;
|
||||||
|
|
Loading…
Reference in New Issue