support spoofing the host address
This commit is contained in:
@@ -256,7 +256,7 @@ fn connect_inner(
|
|||||||
let url = &unit.url;
|
let url = &unit.url;
|
||||||
let method = &unit.method;
|
let method = &unit.method;
|
||||||
|
|
||||||
let socket_host = unit.spoofed_host
|
let socket_host = unit.spoofed_host.as_ref()
|
||||||
.map(|r|r.as_ref())
|
.map(|r|r.as_ref())
|
||||||
.unwrap_or(host);
|
.unwrap_or(host);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user