From d11162c7786c0714687df4f054c47b2d3fcd1e0a Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Sat, 25 Jun 2022 09:34:35 -0400 Subject: [PATCH] refactor --- Cargo.toml | 5 ++--- src/config/parse.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d000dbf..3d2d26e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,8 +16,8 @@ default = ["tls"] tls = ["tokio-rustls", "rustls-pemfile"] [dependencies] -anyhow = "1.0.57" -clap = { version = "3.2.4", features = ["std", "cargo", "wrap_help"] } +anyhow = "1.0.58" +clap = { version = "3.2.6", features = ["std", "cargo", "wrap_help"] } env_logger = "0.9.0" futures = "0.3.21" hyper = { version = "0.14.19", default-features = false, features = [ @@ -47,7 +47,6 @@ hyper-trust-dns = { version = "0.4.2", default-features = false, features = [ "rustls-webpki", ] } rustls = "0.20.6" -# phf = { version = "0.10", features = ["macros"] } [dev-dependencies] diff --git a/src/config/parse.rs b/src/config/parse.rs index 2e2c77b..5c5b905 100644 --- a/src/config/parse.rs +++ b/src/config/parse.rs @@ -32,7 +32,7 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut HashMap app_name: "Localhost to Google except for maps".to_string(), hostname: "localhost".to_string(), reverse_proxy: ReverseProxy { - // default_destination_uri: "http://www.google.com".parse::().unwrap(), + // default_destination_uri: "https://www.google.com".parse::().unwrap(), default_destination_uri: "http://abehiroshi.la.coocan.jp/".parse::().unwrap(), // httpのみの場合の好例 destination_uris: map_example, },