Add connection_speed to advanced settings

Now we follow libtorrent current default value 30.
Closes #6973.

Also bump WebAPI version.
This commit is contained in:
Chocobo1
2021-05-17 01:16:38 +08:00
parent ea3b897d5d
commit ef79546508
8 changed files with 47 additions and 6 deletions

View File

@@ -372,6 +372,8 @@ namespace BitTorrent
void setSendBufferLowWatermark(int value);
int sendBufferWatermarkFactor() const;
void setSendBufferWatermarkFactor(int value);
int connectionSpeed() const;
void setConnectionSpeed(int value);
int socketBacklogSize() const;
void setSocketBacklogSize(int value);
bool isAnonymousModeEnabled() const;
@@ -672,6 +674,7 @@ namespace BitTorrent
CachedSettingValue<int> m_sendBufferWatermark;
CachedSettingValue<int> m_sendBufferLowWatermark;
CachedSettingValue<int> m_sendBufferWatermarkFactor;
CachedSettingValue<int> m_connectionSpeed;
CachedSettingValue<int> m_socketBacklogSize;
CachedSettingValue<bool> m_isAnonymousModeEnabled;
CachedSettingValue<bool> m_isQueueingEnabled;