refactor: connection manager

This commit is contained in:
世界
2024-11-20 11:32:02 +08:00
parent 6eeccef3b6
commit 77e4d86fa0
11 changed files with 569 additions and 52 deletions

View File

@@ -83,7 +83,7 @@ func (i *Inbound) NewPacketEx(buffer *buf.Buffer, source M.Socksaddr) {
destination = i.overrideDestination
case 2:
destination = i.overrideDestination
destination.Port = source.Port
destination.Port = i.listener.UDPAddr().Port
case 3:
destination = source
destination.Port = i.overrideDestination.Port