support spoofing the host address

This commit is contained in:
2023-09-29 05:12:47 -04:00
parent 0fb9d9f494
commit 087fe4d16e

View File

@@ -256,7 +256,7 @@ fn connect_inner(
let url = &unit.url;
let method = &unit.method;
let socket_host = unit.spoofed_host
let socket_host = unit.spoofed_host.as_ref()
.map(|r|r.as_ref())
.unwrap_or(host);