mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 16:46:17 +00:00
Building on the strict literal-IP validator from the previous commit, make the runtime error self-explanatory so anyone tripping on a hostname URL can fix it in one shot: * Errors now lead with the offending zeroconf URL and the rejected host, so wrapping by GetInfo / PushCredentials / pushSimplifiedToken doesn't bury the actual bad value. * The "host must be a literal IP" error suggests two concrete one-liner resolutions (`getent hosts <name>` and `dig +short <name>`) so the user has a copy-paste fix. * The "host is not on a local network" error names the accepted ranges (loopback / RFC1918 private / link-local v4+v6) so the user knows what they're allowed to pass. docs/guides/SOUNDTOUCH-SERVICE.md gains a bullet under Security Considerations explaining the constraint and the rationale (LAN-resident SSRF surface), so the strict behaviour is documented rather than a surprise. The 17 TestValidateZcBaseURL cases still pass — only the message bodies changed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>