diff options
author | Peter Powell <petpow@saberuk.com> | 2017-07-12 16:41:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 16:41:28 +0100 |
commit | 7851faac62d7a83c94cd5d37e0109b5d0a152bf9 (patch) | |
tree | a5140013cb0e0d8c1a2f484645a32001a4bc808c /src/configreader.cpp | |
parent | 834c94679b7df475e50d87ccb11311e297a78718 (diff) | |
parent | 4b37c612257fa94a790d4698a2660112473599ae (diff) |
Merge pull request #1267 from SaberUK/master+config
Store config values in a map instead of a unique vector of pairs.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 9d327532b..8263b8737 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -46,7 +46,7 @@ ServerLimits::ServerLimits(ConfigTag* tag) static ConfigTag* CreateEmptyTag() { - std::vector<KeyVal>* items; + ConfigItems* items; return ConfigTag::create("empty", "<auto>", 0, items); } @@ -220,9 +220,9 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current) if (blk_count == 0) { // No connect blocks found; make a trivial default block - std::vector<KeyVal>* items; + ConfigItems* items; ConfigTag* tag = ConfigTag::create("connect", "<auto>", 0, items); - items->push_back(std::make_pair("allow", "*")); + (*items)["allow"] = "*"; config_data.insert(std::make_pair("connect", tag)); blk_count = 1; } |