mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
fix nil path
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user