Browse Source

Fix IsSplitTunnelEnabled check

Rod Hynes 4 years ago
parent
commit
6466a218a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psiphon/config.go

+ 1 - 1
psiphon/config.go

@@ -1297,7 +1297,7 @@ func (config *Config) GetSponsorID() string {
 // IsSplitTunnelEnabled indicates if split tunnel mode is enabled, either for
 // the client's own country, a specified list of countries, or both.
 func (config *Config) IsSplitTunnelEnabled() bool {
-	return config.SplitTunnelOwnRegion || len(config.SplitTunnelRegions) > 1
+	return config.SplitTunnelOwnRegion || len(config.SplitTunnelRegions) > 0
 }
 
 // GetAuthorizations returns the current client authorizations.