mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
5237337626
* 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. |
||
---|---|---|
.. | ||
mocks | ||
testdata | ||
authmode.go | ||
authmode.pb.go | ||
blockpullorder.go | ||
blockpullorder.pb.go | ||
commit_test.go | ||
config_test.go | ||
config.go | ||
config.pb.go | ||
debug.go | ||
deviceconfiguration.go | ||
deviceconfiguration.pb.go | ||
folderconfiguration.go | ||
folderconfiguration.pb.go | ||
foldertype.go | ||
foldertype.pb.go | ||
guiconfiguration.go | ||
guiconfiguration.pb.go | ||
ldapconfiguration.go | ||
ldapconfiguration.pb.go | ||
ldaptransport.go | ||
ldaptransport.pb.go | ||
migrations_test.go | ||
migrations.go | ||
observed.pb.go | ||
optionsconfiguration.go | ||
optionsconfiguration.pb.go | ||
pullorder.go | ||
pullorder.pb.go | ||
size_test.go | ||
size.go | ||
size.pb.go | ||
tuning_test.go | ||
tuning.go | ||
tuning.pb.go | ||
versioningconfiguration.go | ||
versioningconfiguration.pb.go | ||
wrapper.go |