Fixes #198, replace typo ECXLUDE with EXCLUDE

This commit is contained in:
Glenn Rempe 2016-12-30 18:47:02 -08:00
parent 23d8a06039
commit 9a46b671f7
2 changed files with 6 additions and 6 deletions

6
algo
View File

@ -21,9 +21,9 @@ if [[ "$OnDemandEnabled_WIFI" =~ ^(y|Y)$ ]]; then EXTRA_VARS+=" OnDemandEnabled_
if [[ "$OnDemandEnabled_WIFI" =~ ^(y|Y)$ ]]; then if [[ "$OnDemandEnabled_WIFI" =~ ^(y|Y)$ ]]; then
read -p " read -p "
Do you want to exclude trusted Wi-Fi networks from using the VPN? (e.g., your home network. Comma-separated value, e.g., HomeNet,OfficeWifi,AlgoWiFi) Do you want to exclude trusted Wi-Fi networks from using the VPN? (e.g., your home network. Comma-separated value, e.g., HomeNet,OfficeWifi,AlgoWiFi)
: " -r OnDemandEnabled_WIFI_ECXLUDE : " -r OnDemandEnabled_WIFI_EXCLUDE
OnDemandEnabled_WIFI_ECXLUDE=${OnDemandEnabled_WIFI_ECXLUDE:-_null} OnDemandEnabled_WIFI_EXCLUDE=${OnDemandEnabled_WIFI_EXCLUDE:-_null}
EXTRA_VARS+=" OnDemandEnabled_WIFI_ECXLUDE=$OnDemandEnabled_WIFI_ECXLUDE" EXTRA_VARS+=" OnDemandEnabled_WIFI_EXCLUDE=$OnDemandEnabled_WIFI_EXCLUDE"
fi fi
read -p " read -p "

View File

@ -12,8 +12,8 @@
<integer>1</integer> <integer>1</integer>
<key>OnDemandRules</key> <key>OnDemandRules</key>
<array> <array>
{% if OnDemandEnabled_WIFI_ECXLUDE is defined and OnDemandEnabled_WIFI_ECXLUDE != '_null' %} {% if OnDemandEnabled_WIFI_EXCLUDE is defined and OnDemandEnabled_WIFI_EXCLUDE != '_null' %}
{% set WIFI_ECXLUDE_LIST = OnDemandEnabled_WIFI_ECXLUDE.split(',') %} {% set WIFI_EXCLUDE_LIST = OnDemandEnabled_WIFI_EXCLUDE.split(',') %}
<dict> <dict>
<key>Action</key> <key>Action</key>
<string>Disconnect</string> <string>Disconnect</string>
@ -21,7 +21,7 @@
<string>WiFi</string> <string>WiFi</string>
<key>SSIDMatch</key> <key>SSIDMatch</key>
<array> <array>
{% for network_name in WIFI_ECXLUDE_LIST %} {% for network_name in WIFI_EXCLUDE_LIST %}
<string>{{ network_name }}</string> <string>{{ network_name }}</string>
{% endfor %} {% endfor %}
</array> </array>