mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Support multiple proxies in local storage.
This commit is contained in:
@@ -420,13 +420,6 @@ enum DBIWorkMode {
|
||||
dbiwmWindowOnly = 2,
|
||||
};
|
||||
|
||||
enum DBIConnectionType {
|
||||
dbictAuto = 0,
|
||||
dbictHttpAuto = 1, // not used
|
||||
dbictHttpProxy = 2,
|
||||
dbictTcpProxy = 3,
|
||||
};
|
||||
|
||||
struct ProxyData {
|
||||
enum class Type {
|
||||
None,
|
||||
@@ -440,6 +433,11 @@ struct ProxyData {
|
||||
uint32 port = 0;
|
||||
QString user, password;
|
||||
|
||||
bool valid() const;
|
||||
explicit operator bool() const;
|
||||
bool operator==(const ProxyData &other) const;
|
||||
bool operator!=(const ProxyData &other) const;
|
||||
|
||||
static bool ValidSecret(const QString &secret);
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user