Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 833849

Summary: net-p2p/syncthing: init script hard wires gui address
Product: Gentoo Linux Reporter: simon <s7mon>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: RESOLVED INVALID    
Severity: minor CC: ajak
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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