diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index b2d33a700e..e905159bfb 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -691,10 +691,12 @@ class ApplicationMain { return relay.tunnels.wireguard.length > 0; case 'any': - // TODO: once wireguard is stable, by default we should only filter by - // hasToHaveOpenvpn || hasToHaveWg, until then, only filter wireguard - // relays if tunnel constraints specify wireguard tunnels. - return relay.tunnels.openvpn.length > 0; + // TODO: Drop win32 check when Wireguard becomes default on Windows + if (process.platform === 'win32') { + return relay.tunnels.openvpn.length > 0; + } else { + return relay.tunnels.openvpn.length > 0 || relay.tunnels.wireguard.length > 0; + } default: return false; |
