app: fix desktop app stuck loading when OLLAMA_HOST is an unspecified bind address (#14885)

This commit is contained in:
Eva H
2026-03-19 12:57:57 -04:00
committed by GitHub
parent 96e36c0d90
commit 3f3a24b418
3 changed files with 55 additions and 1 deletions

View File

@@ -155,7 +155,7 @@ func (s *Server) ollamaProxy() http.Handler {
return
}
target := envconfig.Host()
target := envconfig.ConnectableHost()
s.log().Info("configuring ollama proxy", "target", target.String())
newProxy := httputil.NewSingleHostReverseProxy(target)