mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
feature/mtu connection config (#833)
* added the ability to change mtu for connection-only configs * added replacing MTU with default when importing awg/wg configs in amnezia
This commit is contained in:
@@ -13,9 +13,11 @@ class ProtocolsModel : public QAbstractListModel
|
||||
public:
|
||||
enum Roles {
|
||||
ProtocolNameRole = Qt::UserRole + 1,
|
||||
ProtocolPageRole,
|
||||
ServerProtocolPageRole,
|
||||
ClientProtocolPageRole,
|
||||
ProtocolIndexRole,
|
||||
RawConfigRole
|
||||
RawConfigRole,
|
||||
IsClientProtocolExistsRole
|
||||
};
|
||||
|
||||
ProtocolsModel(std::shared_ptr<Settings> settings, QObject *parent = nullptr);
|
||||
@@ -33,7 +35,8 @@ protected:
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
private:
|
||||
PageLoader::PageEnum protocolPage(Proto protocol) const;
|
||||
PageLoader::PageEnum serverProtocolPage(Proto protocol) const;
|
||||
PageLoader::PageEnum clientProtocolPage(Proto protocol) const;
|
||||
|
||||
std::shared_ptr<Settings> m_settings;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user