]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/radius/config.h
Fixed config parser for mod_radius.
[stg.git] / projects / stargazer / plugins / other / radius / config.h
index 8e5055d8c11dd5589efd9575c9808254c729d76d..28da964e930320269be5e507e7bbee01bfbe3391 100644 (file)
@@ -34,8 +34,10 @@ namespace STG
 struct Config
 {
     typedef std::map<std::string, std::string> Pairs;
-    typedef Pairs::value_type Pair;
+    typedef std::pair<std::string, std::string> Pair;
+    enum Type { UNIX, TCP };
 
+    Config() {}
     Config(const MODULE_SETTINGS& settings);
 
     Pairs match;
@@ -44,7 +46,10 @@ struct Config
 
     bool verbose;
 
+    std::string address;
     std::string bindAddress;
+    Type connectionType;
+    std::string portStr;
     uint16_t port;
     std::string key;
 };