Parse a -whitelist string into permissions, a subnet, and a connection direction.
Declared in <net_permissions.h>
static
bool
TryParse(
std::string const& str,
NetWhitelistPermissions& output,
ConnectionDirection& output_connection_direction,
bilingual_str& error);
true if parsing succeeded.
| Name | Description |
|---|---|
| str | The -whitelist configuration string to parse. |
| output | Receives the parsed permissions and subnet on success. |
| output_connection_direction | Receives the connection direction the entry applies to. |
| error | Receives an error message on failure. |