1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-23 10:25:54 +00:00

Update model/Options for SyncthingNative 1.0.1

This commit is contained in:
Catfriend1 2019-02-09 17:35:41 +01:00
parent e833cd699c
commit 3e6266b446

View file

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