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

Do not default to internal URL when external URL is not available #2767

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bgoncal
Copy link
Member

@bgoncal bgoncal commented May 7, 2024

Summary

To avoid using internal URL out of local network, this PR makes "activeURL" optional, and it will not use internalURL when out of local network.

Tested the internal/external logic on:

  • iPhone
  • iPad
  • Mac
  • Watch
  • Shortcuts
  • Notifications
  • Widgets

For VPN users, they have to set external URL the same as internal URL to have their setup working.

Pending:

  • Verify all edge cases where "guard let" were added
  • Enforce SSID to use internal URL in the App

Next possible iteration:

  • Add noise protocol between app and server to make http connections secure

Screenshots

Screenshot 2024-05-13 at 11 46 47

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant