syncthing / syncthing/syncthing-macos

"Open Syncthing Web Interface" does not use an updated URL until app restart

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
3.9k
Forks
203
Avg merge
3d 14h
Merged PRs (30d)
2

Description

  • Open Syncthing preferences
  • Change the URL to something like http://syncthing.localhost:8384 (or https://syncthing.localhost:8384 if you use HTTPS).
  • Click on one of the following:
    • "Open Syncthing Web Interface" in the preferences window
    • "Open" from the menu

This continues to open the old URL until the app is restarted. I suspect this code is accessing a cached value instead of a fresh one:

https://github.com/syncthing/syncthing-macos/blob/f06374145368049673050c26dc868dc8e0fe0271/syncthing/STApplication.m#L211

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with STApplication.m around line 211, as linked in the issue, and reproduce the problem by changing the Syncthing URL in preferences. Check both “Open Syncthing Web Interface” and the menu’s “Open” action. Done means each action uses the updated URL immediately without requiring an app restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.