[PR #1981] [MERGED] fix GetBestRoute always returning 1231 error #2613

Closed
opened 2026-10-14 21:03:29 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/1981
Author: @VoyNaLunu
Created: 11/10/2025
Status: ✅ Merged
Merged: 11/26/2025
Merged by: @vkamn

Base: dev ← Head: fix/getting-inet-adapter


📝 Commits (2)

  • d4f3e17 fix GetBestRoute always returning 1231 error
  • 9894a36 revert some changes because fix turned out to be simpler

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 client/core/networkUtilities.cpp (+1 -1)

📄 Description

I've been having a problem where the app on windows 10 21H2 would always fail to find inet adapter index and subsequently split app tunneling wouldn't work. When troubleshooting the issue i found that GetBestRoute in AdapterIndexTo function of networkUtilities would always return 1231 error (which i believe is network cannot be reached error). I've changed ipBigEndian type from quint32_be to quint32 and that fixed the issue for me. Tested on my pc and a virtual machine with two different Internet connections.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/1981 **Author:** [@VoyNaLunu](https://github.com/VoyNaLunu) **Created:** 11/10/2025 **Status:** ✅ Merged **Merged:** 11/26/2025 **Merged by:** [@vkamn](https://github.com/vkamn) **Base:** `dev` ← **Head:** `fix/getting-inet-adapter` --- ### 📝 Commits (2) - [`d4f3e17`](https://github.com/amnezia-vpn/amnezia-client/commit/d4f3e17c695a396851fc9e69b497440a165ff41f) fix GetBestRoute always returning 1231 error - [`9894a36`](https://github.com/amnezia-vpn/amnezia-client/commit/9894a3678112f37be32551ac663bb4758dd18487) revert some changes because fix turned out to be simpler ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/core/networkUtilities.cpp` (+1 -1) </details> ### 📄 Description I've been having a problem where the app on windows 10 21H2 would always fail to find inet adapter index and subsequently split app tunneling wouldn't work. When troubleshooting the issue i found that `GetBestRoute` in `AdapterIndexTo` function of networkUtilities would always return 1231 error (which i believe is network cannot be reached error). I've changed `ipBigEndian` type from `quint32_be` to `quint32` and that fixed the issue for me. Tested on my pc and a virtual machine with two different Internet connections. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-14 21:03:29 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#2613
No description provided.