change path name and server name to specific stract to find longest prefix and exact matching in hashtables

This commit is contained in:
Jun Kurihara 2022-07-28 21:46:53 +09:00
commit 1a70869227
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
5 changed files with 89 additions and 20 deletions

View file

@ -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());
}
}