summaryrefslogtreecommitdiff
path: root/client/Config.h
diff options
context:
space:
mode:
authorAlex Borisov <borisov.alexandr@rambler.ru>2011-11-20 03:22:49 +0200
committerAlex Borisov <borisov.alexandr@rambler.ru>2011-11-20 03:22:49 +0200
commit5869e779ee108a63b71798b50beee13ec2480d67 (patch)
tree91bcdbe6c8cbcd7efc0e14be94f50b662f6f2e72 /client/Config.h
parentd542d536369c8191afcc9f63171236e6ce28d398 (diff)
Parsing firewall rules
Diffstat (limited to 'client/Config.h')
-rw-r--r--client/Config.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/Config.h b/client/Config.h
index 091bec2..bf75930 100644
--- a/client/Config.h
+++ b/client/Config.h
@@ -22,18 +22,23 @@ public:
class FirewallEntry
{
public:
- FirewallEntry(): block(false), host("127.0.0.1")
- {
- }
+ FirewallEntry(): block(false), host("127.0.0.1") {}
+
/**
* @brief Firewall action: true - to block access to the host,
* false - to allow access to the host
*/
bool block;
+
/**
* @brief Hostname or address to allow/block access to
*/
string host;
+
+ /**
+ * @brief Extract and set instance variables from config line
+ */
+ void Parse(string entry);
};
/**