Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change base URL to use the HTTP Host header. #101

Closed

Conversation

jgsawyers
Copy link
Contributor

Use the HTTP 'Host' header when available, to make sure the lineup is generated on whatever hostname or IP the client contacted the server on. This should hopefully resolve\negate some of the confusion around setting addresses in configs. Been using this config in my local build for a while without issue; it's similar to the proposed method in #92, just adds a safety net fallback for clients that fail to include the HTTP Host header (old HTTP1.0 clients, or just straight non-compliant clients).

Use the HTTP 'Host' header when available, to make sure the lineup is
generated on whatever hostname the client contacted the server on.
Fall back to the old logic if the 'Host' header is missing (possible on
old\janky HTTP 1.0 clients, where it wasn't a required field). This
should help resolve the confusion in setting addresses in configs.
@tgorgdotcom
Copy link
Owner

Hello FozzieBear. The one thing I was concerned about was keeping the server is consistent with what is reported in SSDP responses. I have some psuedologic written in #98, let me know if this is an acceptable -- especially renaming plex_accessible_ip/plex_accessible_port to advertise_ip/advertise_post

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