[PR #13158] [CLOSED] app/ui: handle unspecified bind addresses in ollama proxy #39972

Closed
opened 2026-04-23 00:58:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13158
Author: @hoyyeva
Created: 11/19/2025
Status: Closed

Base: mainHead: hoyyeva/load-model-list


📝 Commits (1)

  • 9b462f8 app/ui: use envconfig.Host() for ollama proxy to handle unspecified bind addresses

📊 Changes

1 file changed (+1 additions, -18 deletions)

View changed files

📝 app/ui/ui.go (+1 -18)

📄 Description

This PR replace manual environment variable handling with envconfig.Host() which:

  • handles unspecified address normalization
  • returns a properly parsed *url.URL
  • handle defaults and scheme prefixing autmatically

the problem was that when users set OLLAMA_HOST=0.0.0.0 or unspecified value, the app proxy was trying to connect to a invalid connection target.

This PR fixes #13105


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13158 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 11/19/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `hoyyeva/load-model-list` --- ### 📝 Commits (1) - [`9b462f8`](https://github.com/ollama/ollama/commit/9b462f89ca34ba121f9d5353ee026f4ff82bd6ec) app/ui: use envconfig.Host() for ollama proxy to handle unspecified bind addresses ### 📊 Changes **1 file changed** (+1 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/ui.go` (+1 -18) </details> ### 📄 Description This PR replace manual environment variable handling with `envconfig.Host()` which: - handles unspecified address normalization - returns a properly parsed `*url.URL` - handle defaults and scheme prefixing autmatically the problem was that when users set `OLLAMA_HOST=0.0.0.0` or unspecified value, the app proxy was trying to connect to a invalid connection target. This PR fixes #13105 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 00:58:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#39972