| 146 | } |
| 147 | |
| 148 | std::string Server::GetAccessControlList() { |
| 149 | std::string acl = ""; |
| 150 | if (this->whitelist_.size() > 0) { |
| 151 | acl = SERVER_DEFAULT_BLACKLIST; |
| 152 | for (std::vector<std::string>::const_iterator it = this->whitelist_.begin(); |
| 153 | it < this->whitelist_.end(); |
| 154 | ++it) { |
| 155 | acl.append(",+").append(*it); |
| 156 | } |
| 157 | LOG(DEBUG) << "Civetweb ACL is " << acl; |
| 158 | } |
| 159 | return acl; |
| 160 | } |
| 161 | |
| 162 | void Server::GenerateOptionsList(std::vector<const char*>* options) { |
| 163 | std::map<std::string, std::string>::const_iterator it = this->options_.begin(); |