This commit is contained in:
Jun Kurihara 2022-06-25 09:34:35 -04:00
commit d11162c778
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 3 additions and 4 deletions

View file

@ -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]

View file

@ -32,7 +32,7 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut HashMap<String, Backend>
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::<Uri>().unwrap(),
// default_destination_uri: "https://www.google.com".parse::<Uri>().unwrap(),
default_destination_uri: "http://abehiroshi.la.coocan.jp/".parse::<Uri>().unwrap(), // httpのみの場合の好例
destination_uris: map_example,
},