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 }