Rename Proxy::default to ::default_action

Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
2023-08-16 09:31:20 +02:00
parent 01784ee3fd
commit 0c5153bbd6
2 changed files with 12 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ pub struct Proxy {
pub protocol: String,
pub tls: bool,
pub sni: Option<HashMap<String, String>>,
pub default: String,
pub default_action: String,
pub upstream: HashMap<String, Upstream>,
}
@@ -60,7 +60,7 @@ impl Server {
protocol: protocol.clone(),
tls,
sni: sni.clone(),
default: default.clone(),
default_action: default.clone(),
upstream: upstream.clone(),
};
new_server.proxies.push(Arc::new(proxy));