Expand hostname before passing it to NewRegistry()

Signed-off-by: Daniel Menet <membership@sontags.ch>
This commit is contained in:
Daniel Menet 2014-08-10 11:48:34 +02:00
parent 744919be3d
commit 283fba4821

View file

@ -90,7 +90,7 @@ func (s *Service) Search(job *engine.Job) engine.Status {
if err != nil { if err != nil {
return job.Error(err) return job.Error(err)
} }
r, err := NewSession(authConfig, HTTPRequestFactory(metaHeaders), IndexServerAddress(), true) r, err := NewSession(authConfig, HTTPRequestFactory(metaHeaders), hostname, true)
if err != nil { if err != nil {
return job.Error(err) return job.Error(err)
} }