some refactor
This commit is contained in:
parent
ebb2fb3c87
commit
9335fc702e
6 changed files with 146 additions and 88 deletions
|
|
@ -16,7 +16,7 @@ use crate::{
|
|||
error::*,
|
||||
globals::*,
|
||||
log::*,
|
||||
proxy::{Backend, Backends, Proxy},
|
||||
proxy::{Backend, Backends, Proxy, ServerNameLC},
|
||||
};
|
||||
use futures::future::select_all;
|
||||
use hyper::Client;
|
||||
|
|
@ -64,8 +64,8 @@ fn main() {
|
|||
};
|
||||
|
||||
let mut backends = Backends {
|
||||
default_app: None,
|
||||
apps: HashMap::<String, Backend>::default(),
|
||||
default_server_name: None,
|
||||
apps: HashMap::<ServerNameLC, Backend>::default(),
|
||||
};
|
||||
|
||||
parse_opts(&mut globals, &mut backends).expect("Invalid configuration");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue