worker: parse ostree MTLS proxy early
This commit is contained in:
parent
d1bf0a77f0
commit
86f903339a
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,9 @@ func (impl *OSTreeResolveJobImpl) Run(job worker.Job) error {
|
|||
reqParams.URL = s.URL
|
||||
reqParams.Ref = s.Ref
|
||||
if match, err := impl.CompareBaseURL(s.URL); match && err == nil {
|
||||
reqParams.Proxy = impl.RepositoryMTLSConfig.Proxy.String()
|
||||
if impl.RepositoryMTLSConfig.Proxy != nil {
|
||||
reqParams.Proxy = impl.RepositoryMTLSConfig.Proxy.String()
|
||||
}
|
||||
reqParams.MTLS = &ostree.MTLS{
|
||||
CA: impl.RepositoryMTLSConfig.CA,
|
||||
ClientCert: impl.RepositoryMTLSConfig.MTLSClientCert,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue