From 5869e779ee108a63b71798b50beee13ec2480d67 Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Sun, 20 Nov 2011 03:22:49 +0200 Subject: Parsing firewall rules --- client/Config.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'client/Config.h') 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); }; /** -- cgit v1.2.3