mirror of
https://github.com/telemt/telemt.git
synced 2026-11-03 22:31:59 +03:00
WEB: bounded opt-in wildcard host routing added
This commit is contained in:
@@ -143,7 +143,11 @@ pub(super) async fn run_telemt_core(
|
||||
config.server.max_connections as usize
|
||||
};
|
||||
let max_connections = Arc::new(Semaphore::new(max_connections_limit));
|
||||
let web_trace = WebTraceStore::new(config.web.debug.clone(), &config.web.limits);
|
||||
let web_trace = WebTraceStore::new_with_wildcards(
|
||||
config.web.debug.clone(),
|
||||
&config.web.limits,
|
||||
config.web.allow_wildcard_hosts,
|
||||
);
|
||||
let web_runtime_control = WebRuntimeControl::new();
|
||||
|
||||
let (detected_ips_tx, detected_ips_rx) = watch::channel((None::<IpAddr>, None::<IpAddr>));
|
||||
|
||||
@@ -438,6 +438,10 @@ pub(crate) fn resolve_reload_config(
|
||||
fields.push("web.limits".to_string());
|
||||
effective.web.limits = old.web.limits.clone();
|
||||
}
|
||||
if old.web.allow_wildcard_hosts != desired.web.allow_wildcard_hosts {
|
||||
fields.push("web.allow_wildcard_hosts".to_string());
|
||||
effective.web.allow_wildcard_hosts = old.web.allow_wildcard_hosts;
|
||||
}
|
||||
if old.web.decoy_fasttrack_mode != desired.web.decoy_fasttrack_mode {
|
||||
fields.push("web.decoy_fasttrack_mode".to_string());
|
||||
effective.web.decoy_fasttrack_mode = old.web.decoy_fasttrack_mode;
|
||||
|
||||
Reference in New Issue
Block a user