You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Idea]: Add configurable allowed-host setting for LAN access (STRATA_ALLOWED_HOSTS) #13
Add configurable allowed-host setting for LAN access (STRATA_ALLOWED_HOSTS)
Problem
When running strata serve on a LAN-accessible interface using --addr 0.0.0.0:8080, requests using a local DNS hostname (e.g., http://ai-server.lan:8080) are rejected with:
The server is reachable, the port is listening, and requests to http://127.0.0.1:8080 work correctly. However, requests using the machine's LAN hostname fail.
Current behavior
The current host_ok() implementation in src/serve.rs permits:
localhost
127.0.0.1
[::1]
The hostname matching the server's bound address.
When binding to 0.0.0.0, a hostname such as ai-server.lan does not match the bound address and is rejected.
This creates a limitation for users accessing RustingStrata through local DNS, reverse proxies, or other LAN hostnames.
Proposed solution
Introduce an optional environment variable or CLI argument for explicitly trusted hostnames.
Activity
Vasyl-Trefilov commentedon Nov 7, 2026
Hi! Ty for Idea, I will implement it soon, I will Tag you when it's done, maybe in 1-2 days
Vasyl-Trefilov commentedon Nov 8, 2026
@Ocean572 Hi! It's implemented, you can checkout on main, ty for Idea, I will add you in THANKS.md
[#12] ldmatrix fallback for attention prefill (M1-T3) (#13)