From 1001b2b1adb5eb21e7f3659e58b353aed42239d3 Mon Sep 17 00:00:00 2001 From: Haruue Date: Sat, 5 Oct 2024 10:23:43 +0800 Subject: [PATCH] chore: fix comments --- core/server/udp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/server/udp.go b/core/server/udp.go index eb10b19..14efc9e 100644 --- a/core/server/udp.go +++ b/core/server/udp.go @@ -133,7 +133,9 @@ func (e *udpSessionEntry) initConn(firstMsg *protocol.UDPMessage) error { } e.conn = conn + if firstMsg.Addr != actualAddr { + // Hook changed the address, enable address override e.OverrideAddr = actualAddr e.OriginalAddr = firstMsg.Addr }