| 307 | } |
| 308 | |
| 309 | bool |
| 310 | HttpProxyPort::loadValue(std::vector<self> &ports, const char *text) |
| 311 | { |
| 312 | unsigned old_port_length = ports.size(); // remember this. |
| 313 | if (text && *text) { |
| 314 | Tokenizer tokens(", "); |
| 315 | int n_ports = tokens.Initialize(text); |
| 316 | if (n_ports > 0) { |
| 317 | for (int p = 0; p < n_ports; ++p) { |
| 318 | const char *elt = tokens[p]; |
| 319 | HttpProxyPort entry; |
| 320 | if (entry.processOptions(elt)) { |
| 321 | ports.push_back(entry); |
| 322 | } else { |
| 323 | Warning("No valid definition was found in proxy port configuration element '%s'", elt); |
| 324 | } |
| 325 | } |
| 326 | } |
| 327 | } |
| 328 | return ports.size() > old_port_length; // we added at least one port. |
| 329 | } |
| 330 | |
| 331 | bool |
| 332 | HttpProxyPort::processOptions(const char *opts) |
nothing calls this directly
no test coverage detected