fix nil path

This commit is contained in:
mlsmaycon
2026-01-28 22:40:39 +01:00
parent a0a61d4f47
commit 717da8c7b7

View File

@@ -157,8 +157,14 @@ func (s *ProxyServiceServer) sendSnapshot(ctx context.Context, conn *proxyConnec
// We don't care about disabled reverse proxy targets for snapshots.
continue
}
// todo: review this fix
path := "/"
if t.Path != nil {
path = "/"
}
paths = append(paths, &proto.PathMapping{
Path: *t.Path,
Path: path,
Target: t.Host,
})
}