From 10dba4e7c79e622249cf4539cff3347619e15059 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 4 Mar 2025 23:27:30 +0100 Subject: set correct port on forwarded headers --- src/modules/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/proxy.rs') 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(); -- cgit v1.2.3-70-g09d2