config/handler: add host -> dest mappings

This commit is contained in:
Vaxry
2025-04-21 22:51:42 +01:00
parent 5b2744584a
commit a8ca03f1d6
3 changed files with 44 additions and 13 deletions

View File

@@ -19,6 +19,11 @@ class CConfig {
std::string resource = "";
};
struct SProxyRule {
std::string host = "";
std::string destination = "";
};
struct SConfig {
int port = 3001;
std::string forward_address = "127.0.0.1:3000";
@@ -31,6 +36,7 @@ class CConfig {
std::vector<SConfigRule> rules = {};
int default_challenge_difficulty = 4;
bool async_proxy = true;
std::vector<SProxyRule> proxy_rules;
} m_config;
struct {