mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-01-16 07:32:36 +08:00
Replace manual IP header construction with gVisor's Route API: - Use Stack.FindRoute() to create proper route - Use Route.WritePacket() with NetworkHeaderParams - Let gVisor handle IP header construction - Simpler and more maintainable code Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>