Xray with Reality protocol (#494)

* Xray with Reality for desktops
This commit is contained in:
Mykola Baibuz 2024-03-27 11:02:34 +00:00 committed by GitHub
parent f6acec53c0
commit ba4237f1dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 1933 additions and 336 deletions

View file

@ -8,6 +8,8 @@
#include <QDebug>
#include <QObject>
#include "../client/platforms/linux/daemon/dnsutilslinux.h"
/**
* @brief The Router class - General class for handling ip routing
*/
@ -29,15 +31,20 @@ public:
bool routeDeleteList(const QString &gw, const QStringList &ips);
QString getgatewayandiface();
void flushDns();
bool createTun(const QString &dev, const QString &subnet);
bool deleteTun(const QString &dev);
void StartRoutingIpv6();
void StopRoutingIpv6();
bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers);
public slots:
private:
RouterLinux() {}
RouterLinux() {m_dnsUtil = new DnsUtilsLinux(this);}
RouterLinux(RouterLinux const &) = delete;
RouterLinux& operator= (RouterLinux const&) = delete;
QList<Route> m_addedRoutes;
DnsUtilsLinux *m_dnsUtil;
};
#endif // ROUTERLINUX_H