| 248 | } |
| 249 | |
| 250 | static void add_dns(std::vector<acl::string>& name_servers, const char* s) |
| 251 | { |
| 252 | acl::string buf(s); |
| 253 | const std::vector<acl::string>& tokens = buf.split2(",; \t"); |
| 254 | for (std::vector<acl::string>::const_iterator cit = tokens.begin(); |
| 255 | cit != tokens.end(); ++cit) { |
| 256 | |
| 257 | name_servers.push_back(*cit); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | int main(int argc, char* argv[]) |
| 262 | { |