Commit 4749e66c authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Disallow copying Config

parent 25ea4197
...@@ -1272,8 +1272,6 @@ constexpr auto DEFAULT_ACCESSLOG_FORMAT = StringRef::from_lit( ...@@ -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 { ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment