This PR to GitHub - syncthing/syncthing: Open Source Continuous File Synchronization is delivered to you by uploading diffs to discourse because the github UI is broken and won’t let me create a fork.
make checks for whether the gui-address is overridden consistent by
checking whether the environment variable is set and not an empty
Network() function however checked for the inclusion of
a slash instead of the presence of any characters. If the config file’s
gui address was set to a unix socket and the gui override to a tcp
address, then the function would have wrongly returned “unix”.
URL() function always returned the config file’s gui address if a
unix socket was configured, even if an override was specified.
URL() function wrongly formatted unix addresses. the http(s)
protocol was used as the sheme and the path was percent escaped. because
of the previous bug, this could only be triggered if the config file’s
gui address was tcp and an unix socket override was given.
useTLS() function’s codepath for overrides.