mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-21 04:49:10 +02:00
fix non-nil path assignment
This commit is contained in:
@@ -157,10 +157,11 @@ func (s *ProxyServiceServer) sendSnapshot(ctx context.Context, conn *proxyConnec
|
|||||||
// We don't care about disabled reverse proxy targets for snapshots.
|
// We don't care about disabled reverse proxy targets for snapshots.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// todo: review this fix
|
|
||||||
|
// Default to a top level path (routes all paths) if no path is defined.
|
||||||
path := "/"
|
path := "/"
|
||||||
if t.Path != nil {
|
if t.Path != nil {
|
||||||
path = "/"
|
path = *t.Path
|
||||||
}
|
}
|
||||||
|
|
||||||
paths = append(paths, &proto.PathMapping{
|
paths = append(paths, &proto.PathMapping{
|
||||||
|
|||||||
Reference in New Issue
Block a user