summaryrefslogtreecommitdiff
path: root/src/modules/proxy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/proxy.rs')
-rw-r--r--src/modules/proxy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/proxy.rs b/src/modules/proxy.rs
index e92b8fc..2fa3538 100644
--- a/src/modules/proxy.rs
+++ b/src/modules/proxy.rs
@@ -54,7 +54,7 @@ impl Node for Proxy {
);
request.headers_mut().insert(
"x-forwarded-port",
- HeaderValue::from_str(&context.addr.port().to_string()).unwrap(),
+ HeaderValue::from_str(&context.listen_addr.port().to_string()).unwrap(),
);
let scheme =
HeaderValue::from_str(if context.secure { "https" } else { "http" }).unwrap();