Use all your internet connections at once on Windows, macOS, Linux and Android: per-connection load balancing over Wi-Fi, Ethernet, mobile data and phone tethers
Go androidbandwidth-aggregationdownloadergolanglinuxload-balancingmacosnet-mergenetworkingtetheringtunwifiwindowswintun
fix(windows): hide the PowerShell window of the adapter capability check (#25)
Dhruv Arora36eeae35b4a2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 76b8a94..33dc14f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,10 @@ entry here before pushing a version tag.## [Unreleased]+### Fixed+- **Windows: no more PowerShell window flashing when a new adapter connects** (#10). The adapter capability+ check now hides its PowerShell window, the way the other helper commands in `internal/tun` already did.+## [0.3.1] - 2026-10-19### Addeddiff --git a/internal/tun/tun_windows.go b/internal/tun/tun_windows.goindex f258516..965f92b 100644--- a/internal/tun/tun_windows.go+++ b/internal/tun/tun_windows.go@@ -182,10 +182,13 @@ func syncStrongHost(stop chan struct{}) {return}// Get-NetIPInterface prints enum names, which unlike netsh's output are not translated.- out, err := exec.Command("powershell", "-NoProfile", "-NonInteractive", "-Command",+ // HideWindow: without it, every new adapter flashes a PowerShell console (#10).+ ps := exec.Command("powershell", "-NoProfile", "-NonInteractive", "-Command","Get-NetIPInterface -InterfaceIndex "+strings.Join(idx, ",")+" -ErrorAction SilentlyContinue | "+"Where-Object { $_.WeakHostSend -eq 'Enabled' -or $_.Forwarding -eq 'Enabled' } | "+- "ForEach-Object { '{0} {1} {2} {3}' -f $_.AddressFamily, $_.InterfaceIndex, $_.WeakHostSend, $_.Forwarding }").Output()+ "ForEach-Object { '{0} {1} {2} {3}' -f $_.AddressFamily, $_.InterfaceIndex, $_.WeakHostSend, $_.Forwarding }")+ ps.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}+ out, err := ps.Output()if err != nil {logx.Printf("warning: could not check the adapters' weak host setting: %v\n", err)return