change path name and server name to specific stract to find longest prefix and exact matching in hashtables
This commit is contained in:
parent
7bd9040637
commit
1a70869227
5 changed files with 89 additions and 20 deletions
|
|
@ -151,7 +151,7 @@ pub fn parse_opts(globals: &mut Globals) -> std::result::Result<(), anyhow::Erro
|
|||
"Serving plaintext http for requests to unconfigured server_name by app {} (server_name: {}).",
|
||||
d, d_sn[0]
|
||||
);
|
||||
globals.backends.default_server_name_bytes = Some(d_sn[0].as_bytes().to_vec());
|
||||
globals.backends.default_server_name_bytes = Some(d_sn[0].to_server_name_vec());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue