Skip to content

Bypass proxy for local oMLX health checks#558

Merged
jundot merged 1 commit intojundot:mainfrom
MKuBMax:fix/local-health-check-no-proxy
Apr 4, 2026
Merged

Bypass proxy for local oMLX health checks#558
jundot merged 1 commit intojundot:mainfrom
MKuBMax:fix/local-health-check-no-proxy

Conversation

@MKuBMax
Copy link
Copy Markdown
Contributor

@MKuBMax MKuBMax commented Apr 3, 2026

Fix oMLX menu status detection when a system proxy is enabled. Local 127.0.0.1 health checks and admin sessions now ignore environment proxy settings, so the app no longer misdetects a running server as starting when Shadowsocks is on.\n\nValidation:\n- py_compile passed for packaging/omlx_app/app.py, config.py, server_manager.py\n- Reproduced that requests.Session(trust_env=False) returns 200 from http://127.0.0.1:48000/health while the default session can inherit the proxy

Copy link
Copy Markdown
Owner

@jundot jundot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. Clean fix, makes sense. Localhost health checks should never go through a system proxy.

Merging.

@jundot jundot merged commit 06cde34 into jundot:main Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants