🐛 Trace collect source issue

This commit is contained in:
LittleSheep 2024-01-25 14:50:08 +08:00
parent 4bdddf72e9
commit bfce13fc74

View File

@ -95,6 +95,8 @@ func UseProxies(app *fiber.App) {
}
func makeResponse(ctx *fiber.Ctx, region *navi.Region, location *navi.Location, dest *navi.Destination) error {
uri := ctx.Request().URI().String()
// Modify request
for _, transformer := range dest.Transformers {
if err := transformer.TransformRequest(ctx); err != nil {
@ -123,7 +125,7 @@ func makeResponse(ctx *fiber.Ctx, region *navi.Region, location *navi.Location,
Region: region.ID,
Location: location.ID,
Destination: dest.ID,
Uri: ctx.OriginalURL(),
Uri: uri,
IpAddress: ctx.IP(),
UserAgent: ctx.Get(fiber.HeaderUserAgent),
Error: navi.RoadTraceError{