mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fix: GetBestRoute always returning 1231 error (#1981)
* fix GetBestRoute always returning 1231 error * revert some changes because fix turned out to be simpler
This commit is contained in:
@@ -170,7 +170,7 @@ int NetworkUtilities::AdapterIndexTo(const QHostAddress& dst) {
|
|||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
qDebug() << "Getting Current Internet Adapter that routes to"
|
qDebug() << "Getting Current Internet Adapter that routes to"
|
||||||
<< dst.toString();
|
<< dst.toString();
|
||||||
quint32_be ipBigEndian;
|
quint32 ipBigEndian;
|
||||||
quint32 ip = dst.toIPv4Address();
|
quint32 ip = dst.toIPv4Address();
|
||||||
qToBigEndian(ip, &ipBigEndian);
|
qToBigEndian(ip, &ipBigEndian);
|
||||||
_MIB_IPFORWARDROW routeInfo;
|
_MIB_IPFORWARDROW routeInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user