Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833849 - net-p2p/syncthing: init script hard wires gui address
Summary: net-p2p/syncthing: init script hard wires gui address
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-21 13:58 UTC by simon
Modified: 2022-02-21 16:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simon 2022-02-21 13:58:44 UTC
Tried to access my syncthing setup today and found i could not connect to its web gui any more.
Looking at it's configuration it showed still the IP address i configured it to listen but it was not doing that but limited to 127.0.0.1 (i connect from a different machine in my local network)

After i connected from localhost i could see a hint in the UI that my settings where still recognized but overriden by startup which i then found in the init-script.


SYNCTHING_GUI_ADDRESS=${SYNCTHING_GUI_ADDRESS:-http://127.0.0.1:8384}

Is this by intention? If yes what is the proper way to support a different listen address. Should i change init script by commenting this and update in with every update? 
What is the need of the override in the gentoo init script in the first place?


Thanks
Comment 1 simon 2022-02-21 14:00:25 UTC
Forgot to mention it is net-p2p/syncthing 1.19.0 (unstable)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-02-21 14:07:15 UTC
You should simply set SYNCTHING_GUI_ADDRESS in /etc/conf.d/syncthing, then don't overwrite your configuration on updates.
Comment 3 simon 2022-02-21 16:47:39 UTC
Thanks for the quick answer & sorry if i missed that in post-i info