ui: fixed Estimate not honoring the defined policies (#1002)

This commit is contained in:
Jarek Kowalski
2021-04-21 17:26:00 -07:00
parent bf78476fec
commit 38725e733f

View File

@@ -85,8 +85,8 @@ func (s *Server) handleEstimate(ctx context.Context, r *http.Request, body []byt
ctrl.OnCancel(cancel)
policyTree, err := policy.TreeForSource(ctx, s.rep, snapshot.SourceInfo{
Host: s.options.ConnectOptions.Hostname,
UserName: s.options.ConnectOptions.Username,
Host: s.rep.ClientOptions().Hostname,
UserName: s.rep.ClientOptions().Username,
Path: resolvedRoot,
})
if err != nil {