| 454 | } |
| 455 | |
| 456 | static void add_dns(std::vector<acl::string>& name_servers, const char* s) |
| 457 | { |
| 458 | acl::string buf(s); |
| 459 | const std::vector<acl::string>& tokens = buf.split2(",; \t"); |
| 460 | for (std::vector<acl::string>::const_iterator cit = tokens.begin(); |
| 461 | cit != tokens.end(); ++cit) { |
| 462 | |
| 463 | name_servers.push_back(*cit); |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | int main(int argc, char* argv[]) |
| 468 | { |