1
0
mirror of https://github.com/octoleo/syncthing.git synced 2025-01-02 14:42:00 +00:00
syncthing/cmd
André Colomb 5237337626
cmd/syncthing: Add --skip-port-probing (fixes ) ()
* cmd/syncthing: Remove unnecessary function arguments.

The openGUI() function does not need a device ID to work, and there is
only one caller anyway which uses EmptyDeviceID.

The loadOrDefaultConfig() function is always called with the same
dummy values.

* cmd/syncthing: Avoid misleading info messages from monitor process.

In order to check whether panic reporting is enabled, the monitor
process utilizes the loadOrDefaultConfig() function.  In case there is
no config file yet, info messages may be logged during creation if the
config Wrapper, which is discarded immediately after.

Stop using the DefaultConfig() utility function from lib/syncthing and
directly generate a minimal config instead to avoid these.

Add comments to loadOrDefaultConfig() explaining its limited purpose.

* cmd/syncthing/generate: Always write updated config file.

Previously, an existing config file was left untouched unless either
of the --gui-user or --gui-password options was given.  Remove that
condition and simplify the checking code.

* lib/config: Factor out ProbeFreePorts().

* cmd/syncthing: Add option --skip-port-probing.

Applies to both the "generate" and "serve" subcommands, as well as the
deprecated --generate option, just as the --no-default-folder flag.
2022-01-07 11:19:17 +01:00
..
stcompdirs all: Remove crypto/md5 () 2021-03-17 22:22:49 +01:00
stcrashreceiver all: Remove usage of deprecated io/ioutil () 2021-11-22 08:59:47 +01:00
stdisco all: Implement suture v4-api () 2020-11-17 13:19:04 +01:00
stdiscosrv cmd/stdiscosrv: Support deploying behind Caddyserver () 2022-01-05 15:17:13 +01:00
stevents cmd/stevents: Add command line argument for event type filtering. () 2020-12-22 22:10:26 +01:00
stfileinfo all: Implement variable sized blocks (fixes ) 2018-04-16 19:08:50 +01:00
stfinddevice lib: Faster termination on exit (ref ) () 2020-02-13 14:43:00 +01:00
stfindignored all: Unused args, retvals, assignments () 2021-09-08 00:11:16 +02:00
stgenfiles all: Revert the underscore sillyness 2019-02-02 12:16:27 +01:00
strelaypoolsrv all: Remove usage of deprecated io/ioutil () 2021-11-22 08:59:47 +01:00
strelaysrv all: Remove usage of deprecated io/ioutil () 2021-11-22 08:59:47 +01:00
stsigtool all: Remove usage of deprecated io/ioutil () 2021-11-22 08:59:47 +01:00
stupgrades cmd/stupgrades: Generate appropriate upgrade data (fixes ) () 2019-08-16 10:04:10 +02:00
stvanity all: Simplify some method calls () 2021-03-17 23:12:26 +01:00
stwatchfile all: Remove crypto/md5 () 2021-03-17 22:22:49 +01:00
syncthing cmd/syncthing: Add --skip-port-probing (fixes ) () 2022-01-07 11:19:17 +01:00
uraggregate cmd/uraggregate: Optimise queries () 2021-05-16 12:34:46 +01:00
ursrv all: Remove usage of deprecated io/ioutil () 2021-11-22 08:59:47 +01:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00