| 185 | #endif |
| 186 | |
| 187 | string_view strip_string(string_view in) |
| 188 | { |
| 189 | while (!in.empty() && is_space(in.front())) |
| 190 | in.remove_prefix(1); |
| 191 | |
| 192 | while (!in.empty() && is_space(in.back())) |
| 193 | in.remove_suffix(1); |
| 194 | return in; |
| 195 | } |
| 196 | |
| 197 | // this parses the string that's used as the listen_interfaces setting. |
| 198 | // it is a comma-separated list of IP or device names with ports. For |