| 32 | } |
| 33 | |
| 34 | static void add_name_servers(std::vector<acl::string>& addrs, const char* s) |
| 35 | { |
| 36 | acl::string buf(s); |
| 37 | const std::vector<acl::string>& tokens = buf.split2(",; \t"); |
| 38 | |
| 39 | for (std::vector<acl::string>::const_iterator cit = tokens.begin(); |
| 40 | cit != tokens.end(); ++cit) { |
| 41 | |
| 42 | addrs.push_back(*cit); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | int main(int argc, char* argv[]) |
| 47 | { |