Repository navigation
NetPilot 1.2.1
NetPilot 1.2.1
Patch release. One bug fix, reported by users: on some machines the phone-tunnel page claimed
the PC's VPN was connected while it was not — and, because an "active" PC VPN also blocks
sharing, it stopped that feature from working at all.
Fixed — the PC VPN indicator stopped lying
Root cause. A VPN client's virtual network card is reported Up by the driver on almost
every machine that merely has the client installed — and Windows has even self-assigned it an
APIPA address (169.254.x.x) while it was doing nothing. The detector treated driver-level
"Up" as a live tunnel.
This machine shows it exactly:
HotspotShield Network Adapter status=Disconnected ipv4=169.254.149.195
On machines where such a card reports Up instead, the page said "PC VPN: connected".
The rule now. An established tunnel carries a usable IPv4 address; an adapter that is up
but has none — or only an APIPA one — is a client that is installed and not tunnelling:
| Adapter state | Reported |
|---|---|
Windows VPN profile reports Connected |
Active (authoritative) |
| VPN adapter up with a usable address | Active |
| VPN adapter up without one | Unknown — a new, neutral third state |
| nothing VPN-looking up | Inactive |
Why a third state instead of just "inactive". Two of the three used to be lumped together,
and the guess was wrong in both directions. Unknown is shown in grey and does not block
sharing — only a confirmed active VPN does.
Also in this release
/api/v1/statusgainedpcVpnState(active/inactive/unknown).pcVpnActive
stays, so older phone builds keep working.
Verification
58 Windows tests (up from 43), including a new suite that pins the address rule and checks
the invariant against this machine's real adapters, plus the 92 Android unit tests and lint.
Assets
| File | What it is |
|---|---|
NetPilot-Windows-1.2.1-Setup.exe |
Installer, self-contained. Run as administrator. |
NetPilot-1.2.1-release.apk |
Android release build, versionCode 3, minSdk 26, universal APK. |
NetPilot-Windows-1.2.1.exe |
The desktop exe alone, for machines with the .NET 8 runtime. |
Licence: MIT.