diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-07-11 12:41:24 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2017-07-12 11:15:35 -0400 |
commit | cddf5ed098ea4eb8df1d946d750edd4280e022e3 (patch) | |
tree | b18e5a4ebdf3e130b35479d724b5590ef75944b2 /src/mongo/db/mongod_options.h | |
parent | 1d1b6ba0a7387b36d8ad0e47b77121e6c6c156f1 (diff) | |
download | mongo-cddf5ed098ea4eb8df1d946d750edd4280e022e3.tar.gz |
SERVER-29176: Implement --clusterIpSourceWhitelist
Diffstat (limited to 'src/mongo/db/mongod_options.h')
-rw-r--r-- | src/mongo/db/mongod_options.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/mongod_options.h b/src/mongo/db/mongod_options.h index 27fb778cfdf..05bb6d8d5a5 100644 --- a/src/mongo/db/mongod_options.h +++ b/src/mongo/db/mongod_options.h @@ -28,6 +28,8 @@ #pragma once +#include <boost/optional.hpp> + #include "mongo/base/status.h" #include "mongo/db/repl/repl_settings.h" #include "mongo/db/server_options.h" @@ -45,9 +47,9 @@ class Environment; namespace moe = mongo::optionenvironment; struct MongodGlobalParams { - bool scriptingEnabled; // --noscripting + bool scriptingEnabled = true; // --noscripting - MongodGlobalParams() : scriptingEnabled(true) {} + boost::optional<std::vector<std::string>> whitelistedClusterNetwork; }; extern MongodGlobalParams mongodGlobalParams; |