diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -37,6 +37,8 @@ struct Socket std::string port; SocketProtocol protocol; std::unordered_set<std::string> serve_sites; // if empty, automatically expand to all configured sites + + std::unordered_map <std::string, Site*> host_lut; // look up table for fast server decision in GetPath() }; class Config @@ -44,7 +46,9 @@ class Config const std::string default_filename{"/etc/webserver.conf"}; void readConfigfile(std::string filename); + void expand_socket_sites(); void validate(); + void create_look_up_table(); std::string m_user; std::string m_group; |