encode wifi networks to base64 (#1303)

This commit is contained in:
Jack Ivanov 2019-01-28 23:51:28 +01:00 committed by Dan Guido
parent a266b4d633
commit c47dd4a7ab
2 changed files with 3 additions and 3 deletions

View file

@ -12,8 +12,8 @@
<integer>1</integer>
<key>OnDemandRules</key>
<array>
{% if algo_ondemand_wifi_exclude != '_null' %}
{% set WIFI_EXCLUDE_LIST = (algo_ondemand_wifi_exclude|string).split(',') %}
{% if algo_ondemand_wifi_exclude|b64decode != '_null' %}
{% set WIFI_EXCLUDE_LIST = (algo_ondemand_wifi_exclude|b64decode|string).split(',') %}
<dict>
<key>Action</key>
<string>Disconnect</string>

View file

@ -49,7 +49,7 @@
algo_server_name: {{ algo_server_name }}
algo_ondemand_cellular: {{ algo_ondemand_cellular }}
algo_ondemand_wifi: {{ algo_ondemand_wifi }}
algo_ondemand_wifi_exclude: {{ algo_ondemand_wifi_exclude }}
algo_ondemand_wifi_exclude: {{ algo_ondemand_wifi_exclude | b64encode }}
algo_local_dns: {{ algo_local_dns }}
algo_ssh_tunneling: {{ algo_ssh_tunneling }}
algo_windows: {{ algo_windows }}