refactor
This commit is contained in:
parent
744b65b738
commit
d11162c778
2 changed files with 3 additions and 4 deletions
|
|
@ -16,8 +16,8 @@ default = ["tls"]
|
||||||
tls = ["tokio-rustls", "rustls-pemfile"]
|
tls = ["tokio-rustls", "rustls-pemfile"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.57"
|
anyhow = "1.0.58"
|
||||||
clap = { version = "3.2.4", features = ["std", "cargo", "wrap_help"] }
|
clap = { version = "3.2.6", features = ["std", "cargo", "wrap_help"] }
|
||||||
env_logger = "0.9.0"
|
env_logger = "0.9.0"
|
||||||
futures = "0.3.21"
|
futures = "0.3.21"
|
||||||
hyper = { version = "0.14.19", default-features = false, features = [
|
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-webpki",
|
||||||
] }
|
] }
|
||||||
rustls = "0.20.6"
|
rustls = "0.20.6"
|
||||||
# phf = { version = "0.10", features = ["macros"] }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
app_name: "Localhost to Google except for maps".to_string(),
|
||||||
hostname: "localhost".to_string(),
|
hostname: "localhost".to_string(),
|
||||||
reverse_proxy: ReverseProxy {
|
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のみの場合の好例
|
default_destination_uri: "http://abehiroshi.la.coocan.jp/".parse::<Uri>().unwrap(), // httpのみの場合の好例
|
||||||
destination_uris: map_example,
|
destination_uris: map_example,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue