mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-04 02:38:42 +00:00
Update server.go
This commit is contained in:
@@ -234,8 +234,8 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn stat.Connection, dis
|
|||||||
newInbound.Source = net.DestinationFromAddr(conn.RemoteAddr())
|
newInbound.Source = net.DestinationFromAddr(conn.RemoteAddr())
|
||||||
newInbound.Local = net.DestinationFromAddr(conn.LocalAddr())
|
newInbound.Local = net.DestinationFromAddr(conn.LocalAddr())
|
||||||
inbound = &newInbound
|
inbound = &newInbound
|
||||||
ctx = session.ContextWithInbound(ctx, &newInbound)
|
ctx = session.ContextWithInbound(ctx, inbound)
|
||||||
errors.LogInfo(ctx, "client UDP connection from ", newInbound.Source)
|
errors.LogInfo(ctx, "client UDP connection from ", inbound.Source)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user