mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-18 15:17:07 +02:00
Allow OnDemand to be toggled later (#1557)
This commit is contained in:
parent
95eddccfb7
commit
c6f45ead69
1 changed files with 4 additions and 4 deletions
|
@ -8,11 +8,11 @@
|
|||
<dict>
|
||||
<key>IKEv2</key>
|
||||
<dict>
|
||||
{% if algo_ondemand_wifi or algo_ondemand_cellular %}
|
||||
<key>OnDemandEnabled</key>
|
||||
<integer>1</integer>
|
||||
<integer>{{ 1 if algo_ondemand_wifi or algo_ondemand_cellular else 0 }}</integer>
|
||||
<key>OnDemandRules</key>
|
||||
<array>
|
||||
{% if algo_ondemand_wifi or algo_ondemand_cellular %}
|
||||
{% if algo_ondemand_wifi_exclude|b64decode != '_null' %}
|
||||
{% set WIFI_EXCLUDE_LIST = (algo_ondemand_wifi_exclude|b64decode|string).split(',') %}
|
||||
<dict>
|
||||
|
@ -52,12 +52,12 @@
|
|||
<key>URLStringProbe</key>
|
||||
<string>http://captive.apple.com/hotspot-detect.html</string>
|
||||
</dict>
|
||||
{% endif %}
|
||||
<dict>
|
||||
<key>Action</key>
|
||||
<string>Disconnect</string>
|
||||
<string>{{ 'Disconnect' if algo_ondemand_wifi or algo_ondemand_cellular else 'Connect' }}</string>
|
||||
</dict>
|
||||
</array>
|
||||
{% endif %}
|
||||
<key>AuthenticationMethod</key>
|
||||
<string>Certificate</string>
|
||||
<key>ChildSecurityAssociationParameters</key>
|
||||
|
|
Loading…
Add table
Reference in a new issue