Skip to content

Commit 22a5225

Browse files
committed
Updated to v2.6
1 parent 41fb458 commit 22a5225

File tree

19 files changed

+1
-327
lines changed

19 files changed

+1
-327
lines changed

backend/windows/windscribe_service/logger.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,3 @@ void Logger::debugOut(const char* format, ...)
9494

9595
::OutputDebugStringA(szMsg);
9696
}
97-
98-
void Logger::debugOut(const char *format, ...)
99-
{
100-
va_list arg_list;
101-
va_start(arg_list, format);
102-
103-
char szMsg[1024];
104-
szMsg[1023] = '\0';
105-
106-
_vsnprintf(szMsg, 1023, format, arg_list);
107-
va_end(arg_list);
108-
109-
::OutputDebugStringA(szMsg);
110-
}

client/common/utils/winutils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,4 +1536,3 @@ std::optional<bool> WinUtils::haveInternetConnectivity()
15361536

15371537
return false;
15381538
}
1539-

client/engine/engine/connectionmanager/connectionmanager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ void ConnectionManager::onConnectionError(CONNECT_ERROR err)
560560
// immediately stop trying to connect
561561
state_ = STATE_DISCONNECTED;
562562
timerReconnection_.stop();
563-
getWireGuardConfigInLoop_->stop();
564563
Q_EMIT errorDuringConnection(err);
565564
}
566565
else if (err == CONNECT_ERROR::STATE_TIMEOUT_FOR_AUTOMATIC

client/engine/engine/connectionmanager/finishactiveconnections.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ void FinishActiveConnections::finishIkev2ActiveConnections_win(IHelper *helper)
6666

6767
void FinishActiveConnections::finishWireGuardActiveConnections_win(IHelper *helper)
6868
{
69-
Q_UNUSED(helper)
70-
// No need to stop the wireguard service, as it automatically stops if the client exits prematurely.
71-
// But we need to remove dns leak protection.
7269
Helper_win *helper_win = dynamic_cast<Helper_win *>(helper);
7370
helper_win->stopWireGuard();
7471
helper_win->disableDnsLeaksProtection();

client/engine/engine/dnsresolver/dnsrequest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void DnsRequest::onResolved(const QStringList &ips, int aresErrorCode, qint64 el
5454
{
5555
elapsedMs_ = elapsedMs;
5656
aresErrorCode_ = aresErrorCode;
57-
qCDebug(LOG_DNS_RESOLVER) << "Resolved " << hostname_ << ": " << ips << aresErrorCode;
5857
ips_ = ips;
5958
if (isError()) {
6059
qCDebug(LOG_NETWORK) << "Could not resolve" << hostname_ << "(servers:" << dnsServers_ << "):" << aresErrorCode;

client/engine/engine/engine.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ void Engine::speedRatingImpl(int rating, const QString &localExternalIp)
11001100

11011101
void Engine::setSettingsImpl(const types::EngineSettings &engineSettings)
11021102
{
1103-
qCDebug(LOG_BASIC) << "Engine::";
1103+
qCDebug(LOG_BASIC) << "Engine::setSettingsImpl";
11041104

11051105
bool isAllowLanTrafficChanged = engineSettings_.isAllowLanTraffic() != engineSettings.isAllowLanTraffic();
11061106
bool isUpdateChannelChanged = engineSettings_.updateChannel() != engineSettings.updateChannel();
@@ -1962,8 +1962,6 @@ void Engine::onNetworkChange(const types::NetworkInterface &networkInterface)
19621962
}
19631963
}
19641964

1965-
void Engine::onNetworkChange(const ProtoTypes::NetworkInterface &networkInterface)
1966-
{
19671965
Q_EMIT networkChanged(networkInterface);
19681966
}
19691967

client/engine/engine/firewall/firewallcontroller_linux.cpp

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -302,52 +302,3 @@ QStringList FirewallController_linux::getLocalAddresses(const QString iface) con
302302
freeifaddrs(ifap);
303303
return addrs;
304304
}
305-
306-
void FirewallController_linux::removeWindscribeRules(const QString &comment, bool isIPv6)
307-
{
308-
QString cmd;
309-
int exitCode;
310-
311-
QStringList rules = getWindscribeRules(comment, true, isIPv6);
312-
313-
// delete Windscribe rules, if found
314-
if (!rules.isEmpty())
315-
{
316-
QString curTable;
317-
for (int ind = 0; ind < rules.count(); ++ind)
318-
{
319-
if (rules[ind].startsWith("*"))
320-
{
321-
curTable = rules[ind];
322-
}
323-
324-
if (rules[ind].contains("COMMIT") && curTable.contains("*filter"))
325-
{
326-
rules.insert(ind, "-X windscribe_input");
327-
rules.insert(ind + 1, "-X windscribe_output");
328-
break;
329-
}
330-
}
331-
332-
QFile file(pathToTempTable_);
333-
if (file.open(QIODevice::WriteOnly | QIODevice::Text))
334-
{
335-
QTextStream out(&file);
336-
for (const auto &l : rules)
337-
{
338-
out << l << "\n";
339-
}
340-
file.close();
341-
}
342-
343-
344-
cmd = (isIPv6 ? "ip6tables-restore -n < " : "iptables-restore -n < ") + pathToTempTable_;
345-
helper_->executeRootCommand(cmd, &exitCode);
346-
if (exitCode != 0)
347-
{
348-
qCDebug(LOG_FIREWALL_CONTROLLER) << "Unsuccessful exit code:" << exitCode << " for cmd:" << cmd;
349-
}
350-
351-
QFile::remove(pathToTempTable_);
352-
}
353-
}

client/engine/engine/wireguardconfig/getwireguardconfiginloop.cpp

Lines changed: 0 additions & 45 deletions
This file was deleted.

client/engine/engine/wireguardconfig/getwireguardconfiginloop.h

Lines changed: 0 additions & 38 deletions
This file was deleted.

client/engine/utils/dnsscripts_linux.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "types/enums.h"
55
#include <QString>
6-
#include "utils/protobuf_includes.h"
76

87
class IHelper;
98
class QWidget;
@@ -23,8 +22,6 @@ class DnsScripts_linux
2322
SCRIPT_TYPE dnsManager();
2423
void setDnsManager(DNS_MANAGER_TYPE d);
2524

26-
void setDnsManager(ProtoTypes::DnsManagerType d);
27-
2825
private:
2926
DnsScripts_linux();
3027

0 commit comments

Comments
 (0)