From 087fe4d16e9fd75847f37abdf7995334d356ae68 Mon Sep 17 00:00:00 2001 From: Jessie Date: Fri, 29 Sep 2023 05:12:47 -0400 Subject: [PATCH] support spoofing the host address --- src/unit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit.rs b/src/unit.rs index 10be237..ae538e4 100644 --- a/src/unit.rs +++ b/src/unit.rs @@ -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);