-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Syncthing app doesn't resolve syncthing.localhost
to localhost
(unlike Chrome and Firefox)
#232
Comments
Hmm, looks like the code is trying to look up the scheme through syncthing-macos/syncthing/XGSyncthing.m Lines 179 to 185 in f063741
I definitely have So something is going wrong with this calculation. |
The code is only executed first run to load settings from the XML: syncthing-macos/syncthing/STApplication.m Lines 92 to 93 in f063741
|
The API check fails due to this issue even if the app is restarted. |
I tried debugging this in Xcode for an hour, and I still can't figure out what's causing the I can run the following: defaults write com.github.xor-gate.syncthing-macosx URI -string "https://syncthing.localhost:8384" However, this results in even more red dots in the menu, even though Syncthing is successfully running and available from the web UI: |
Ah, okay, I finally figured it out. Safari (and the underlying network library) do not let localhost be localhost. This is very unintuitive if you mostly use Chrome and Firefox. Therefore, this requires an entry in
As someone who likes to namespaces |
syncthing.localhost
to localhost
syncthing.localhost
to localhost
syncthing.localhost
to localhost
(unlike Chrome and Firefox)
Thanks for reporting, but as you are doing non-standard things which are not supported in macOS by default. I will close this. Syncthing.app should be simple, and having this domain name for localhost service and localhost https is not the default setup. Most of the time people know then what they are doing. |
While debugging #231 I found that even though I had set my URL to
https://syncthing.localhost:8384
(which I have configured with a trusted certificate), Syncthing has rewritten this tohttp://syncthing.localhost:8384
. This seems to cause the API check to fail.I don't think it should be rewriting the URL like that.
EDIT: see #232 (comment)
The text was updated successfully, but these errors were encountered: