From d19c26df06be4e03acb883b9f8c244c5f618aa2c Mon Sep 17 00:00:00 2001 From: Viktor Liu <17948409+lixmal@users.noreply.github.com> Date: Fri, 28 Feb 2025 21:03:40 +0100 Subject: [PATCH] Fix log direction (#3412) --- client/firewall/uspfilter/forwarder/endpoint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/firewall/uspfilter/forwarder/endpoint.go b/client/firewall/uspfilter/forwarder/endpoint.go index a73ea8f87..3720eedfa 100644 --- a/client/firewall/uspfilter/forwarder/endpoint.go +++ b/client/firewall/uspfilter/forwarder/endpoint.go @@ -85,5 +85,6 @@ func (e *endpoint) ParseHeader(*stack.PacketBuffer) bool { type epID stack.TransportEndpointID func (i epID) String() string { - return fmt.Sprintf("%s:%d -> %s:%d", i.LocalAddress, i.LocalPort, i.RemoteAddress, i.RemotePort) + // src and remote is swapped + return fmt.Sprintf("%s:%d -> %s:%d", i.RemoteAddress, i.RemotePort, i.LocalAddress, i.LocalPort) }