mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-13 16:23:00 +02:00
Fixing variable error
This commit is contained in:
parent
0185d95da6
commit
d3ad979296
3 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ congrats:
|
||||||
"# Config files and certificates are in the ./configs/ directory. #"
|
"# Config files and certificates are in the ./configs/ directory. #"
|
||||||
"# Go to https://whoer.net/ after connecting #"
|
"# Go to https://whoer.net/ after connecting #"
|
||||||
"# and ensure that all your traffic passes through the VPN. #"
|
"# and ensure that all your traffic passes through the VPN. #"
|
||||||
"# Local DNS resolver {{ local_service_ip }}{{ ', ' + {{ local_service_ipv6 }} if ipv6_support else '' }} #"
|
"# Local DNS resolver {{ local_service_ip }}{{ ', ' + local_service_ipv6 if ipv6_support else '' }} #"
|
||||||
p12_pass: |
|
p12_pass: |
|
||||||
"# The p12 and SSH keys password for new users is {{ p12_export_password }} #"
|
"# The p12 and SSH keys password for new users is {{ p12_export_password }} #"
|
||||||
ca_key_pass: |
|
ca_key_pass: |
|
||||||
|
|
|
@ -31,7 +31,7 @@ conn %default
|
||||||
rightauth=pubkey
|
rightauth=pubkey
|
||||||
rightsourceip={{ strongswan_network }},{{ strongswan_network_ipv6 }}
|
rightsourceip={{ strongswan_network }},{{ strongswan_network_ipv6 }}
|
||||||
{% if algo_local_dns or dns_encryption %}
|
{% if algo_local_dns or dns_encryption %}
|
||||||
rightdns={{ local_service_ip }}{{ ',' + {{ local_service_ipv6 }} if ipv6_support else '' }}
|
rightdns={{ local_service_ip }}{{ ',' + local_service_ipv6 if ipv6_support else '' }}
|
||||||
{% else %}
|
{% else %}
|
||||||
rightdns={% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support %},{% for host in dns_servers.ipv6 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
|
rightdns={% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support %},{% for host in dns_servers.ipv6 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -6,7 +6,7 @@ wireguard_interface: wg0
|
||||||
keys_clean_all: false
|
keys_clean_all: false
|
||||||
wireguard_dns_servers: >-
|
wireguard_dns_servers: >-
|
||||||
{% if local_dns|default(false)|bool or dns_encryption|default(false)|bool %}
|
{% if local_dns|default(false)|bool or dns_encryption|default(false)|bool %}
|
||||||
{{ local_service_ip }}{{ ', ' + {{ local_service_ipv6 }} if ipv6_support else '' }}
|
{{ local_service_ip }}{{ ', ' + local_service_ipv6 if ipv6_support else '' }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support %},{% for host in dns_servers.ipv6 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
|
{% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support %},{% for host in dns_servers.ipv6 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue