fix non-nil path assignment

This commit is contained in:
Alisdair MacLeod
2026-01-29 08:40:03 +00:00
parent c86da92fc6
commit f4ca36ed7e

View File

@@ -157,10 +157,11 @@ 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
// Default to a top level path (routes all paths) if no path is defined.
path := "/"
if t.Path != nil {
path = "/"
path = *t.Path
}
paths = append(paths, &proto.PathMapping{