From 1fcaed7a34cce8e55bb071d503bb583f715e7d37 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Apr 2020 19:24:16 +0200 Subject: Serve configured sockets --- config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 98a99c0..a8d6a03 100644 --- a/config.h +++ b/config.h @@ -3,6 +3,7 @@ #include #include #include +#include #include namespace fs = std::filesystem; @@ -23,7 +24,7 @@ struct Path struct Site { std::string name; - std::string host; + std::unordered_set hosts; std::vector paths; }; @@ -38,7 +39,7 @@ struct Socket std::string address; std::string port; SocketProtocol protocol; - std::vector serve_sites; // if empty, serve all configured sites // TODO: implement + std::vector serve_sites; // if empty, automatically expand to all configured sites fs::path cert_path; fs::path key_path; }; -- cgit v1.2.3