summaryrefslogtreecommitdiff
path: root/client/Config.h
diff options
context:
space:
mode:
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);
};
/**