diff --git a/app/src/main/java/com/nutomic/syncthingandroid/model/Options.java b/app/src/main/java/com/nutomic/syncthingandroid/model/Options.java index d1e50763..391fc3d4 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/model/Options.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/model/Options.java @@ -1,45 +1,51 @@ package com.nutomic.syncthingandroid.model; +/** + * Sources: + * - https://github.com/syncthing/syncthing/tree/master/lib/config + * - https://github.com/syncthing/syncthing/blob/master/lib/config/optionsconfiguration.go + */ public class Options { - public String[] listenAddresses; - public String[] globalAnnounceServers; - public boolean globalAnnounceEnabled; - public boolean localAnnounceEnabled; - public int localAnnouncePort; - public String localAnnounceMCAddr; - public int maxSendKbps; - public int maxRecvKbps; - public int reconnectionIntervalS; - public boolean relaysEnabled; - public int relayReconnectIntervalM; - public boolean startBrowser; - public boolean natEnabled; - public int natLeaseMinutes; - public int natRenewalMinutes; - public int natTimeoutSeconds; - public int urAccepted; - public String urUniqueId; - public String urURL; - public boolean urPostInsecurely; - public int urInitialDelayS; - public boolean restartOnWakeup; - public int autoUpgradeIntervalH; - public int keepTemporariesH; - public boolean cacheIgnoredFiles; - public int progressUpdateIntervalS; - public boolean symlinksEnabled; - public boolean limitBandwidthInLan; - public String releasesURL; - public String[] alwaysLocalNets; - public boolean overwriteRemoteDeviceNamesOnConnect; - public int tempIndexMinBlocks; - public String defaultFolderPath; + public String[] listenAddresses; // default + public String[] globalAnnounceServers; // default + public boolean globalAnnounceEnabled = true; + public boolean localAnnounceEnabled = true; + public int localAnnouncePort = 21027; + public String localAnnounceMCAddr; // [ff12::8384]:21027 + public int maxSendKbps = 0; + public int maxRecvKbps = 0; + public int reconnectionIntervalS = 60; + public boolean relaysEnabled = true; + public int relayReconnectIntervalM = 10; + public boolean startBrowser = false; // Normally "true" but makes no sense on Android. + public boolean natEnabled = true; + public int natLeaseMinutes = 60; + public int natRenewalMinutes = 30; + public int natTimeoutSeconds = 10; + public int urAccepted = 0; // 0: Undecided + public String urUniqueId; // Automatically generated by SyncthingNative + public String urURL = "https://data.syncthing.net/newdata"; + public boolean urPostInsecurely = false; + public int urInitialDelayS = 1800; + public boolean restartOnWakeup = true; + public int autoUpgradeIntervalH = 0; // Normally "12" but makes no sense on Android. + public boolean upgradeToPreReleases = false; + public int keepTemporariesH = 24; + public boolean cacheIgnoredFiles = false; + public int progressUpdateIntervalS = 5; + public boolean limitBandwidthInLan = false; + public String releasesURL = "https://upgrades.syncthing.net/meta.json"; + public String[] alwaysLocalNets; // Still present in SyncthingNative 1.0.1 + public boolean overwriteRemoteDeviceNamesOnConnect = false; + public int tempIndexMinBlocks = 10; + public String defaultFolderPath; // Automatically generated by SyncthingNative + public boolean setLowPriority = true; // Since v0.14.28, Issue #3307, PR #4087 public MinHomeDiskFree minHomeDiskFree; // Since v1.0.0, see https://github.com/syncthing/syncthing/pull/4888 - public int maxConcurrentScans; + public int maxConcurrentScans = 1; public static class MinHomeDiskFree { public float value = 1;