
* Version bump 4.2.1.0 * feat: add special handshake params to ui * feat: finish adding params * feat: android/ios & fix qml * chore: fix android impl & update 3rd-prebuilt branch * chore: trigger build with windows build * fix: special handshake params to client * chore: update submodule * feat: s3, s4 * chore: update submodule * feat: s3 s4 cont * fix: kt set * chore: update submodule * feat: add default values for s3, s4 * fix: make new parameters optional * chore: update submodules * chore: restore translation files * fix: fixed awg native config import with new junk * chore: restore translation files * AWG v1.5 Build * refactoring: removed s3 s4 fileds from ui part * chore: update link to amneziawg-apple --------- Co-authored-by: pokamest <pokamest@gmail.com> Co-authored-by: Mark Puha <p.mark95@gmail.com> Co-authored-by: albexk <albexk@proton.me> Co-authored-by: Mykola Baibuz <mykola.baibuz@gmail.com>
68 lines
1.8 KiB
C++
68 lines
1.8 KiB
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef INTERFACECONFIG_H
|
|
#define INTERFACECONFIG_H
|
|
|
|
#include <QList>
|
|
#include <QMap>
|
|
#include <QString>
|
|
|
|
#include "ipaddress.h"
|
|
|
|
class QJsonObject;
|
|
|
|
class InterfaceConfig {
|
|
Q_GADGET
|
|
|
|
public:
|
|
InterfaceConfig() {}
|
|
|
|
enum HopType { SingleHop, MultiHopEntry, MultiHopExit };
|
|
Q_ENUM(HopType)
|
|
|
|
HopType m_hopType;
|
|
QString m_privateKey;
|
|
QString m_deviceIpv4Address;
|
|
QString m_deviceIpv6Address;
|
|
QString m_serverIpv4Gateway;
|
|
QString m_serverIpv6Gateway;
|
|
QString m_serverPublicKey;
|
|
QString m_serverIpv4AddrIn;
|
|
QString m_serverPskKey;
|
|
QString m_serverIpv6AddrIn;
|
|
QString m_primaryDnsServer;
|
|
QString m_secondaryDnsServer;
|
|
int m_serverPort = 0;
|
|
int m_deviceMTU = 1420;
|
|
QList<IPAddress> m_allowedIPAddressRanges;
|
|
QStringList m_excludedAddresses;
|
|
QStringList m_vpnDisabledApps;
|
|
QStringList m_allowedDnsServers;
|
|
bool m_killSwitchEnabled;
|
|
#if defined(MZ_ANDROID) || defined(MZ_IOS)
|
|
QString m_installationId;
|
|
#endif
|
|
|
|
QString m_junkPacketCount;
|
|
QString m_junkPacketMinSize;
|
|
QString m_junkPacketMaxSize;
|
|
QString m_initPacketJunkSize;
|
|
QString m_responsePacketJunkSize;
|
|
QString m_cookieReplyPacketJunkSize;
|
|
QString m_transportPacketJunkSize;
|
|
QString m_initPacketMagicHeader;
|
|
QString m_responsePacketMagicHeader;
|
|
QString m_underloadPacketMagicHeader;
|
|
QString m_transportPacketMagicHeader;
|
|
QMap<QString, QString> m_specialJunk;
|
|
QMap<QString, QString> m_controlledJunk;
|
|
QString m_specialHandshakeTimeout;
|
|
|
|
QJsonObject toJson() const;
|
|
QString toWgConf(
|
|
const QMap<QString, QString>& extra = QMap<QString, QString>()) const;
|
|
};
|
|
|
|
#endif // INTERFACECONFIG_H
|