summaryrefslogtreecommitdiff
path: root/data/templates/system/curlrc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/system/curlrc.tmpl')
-rw-r--r--data/templates/system/curlrc.tmpl8
1 files changed, 3 insertions, 5 deletions
diff --git a/data/templates/system/curlrc.tmpl b/data/templates/system/curlrc.tmpl
index 3e5ce801c..be4efe8ba 100644
--- a/data/templates/system/curlrc.tmpl
+++ b/data/templates/system/curlrc.tmpl
@@ -1,8 +1,6 @@
-{% if http_client is defined %}
-{% if http_client.source_interface is defined %}
+{% if http_client.source_interface is vyos_defined %}
--interface "{{ http_client.source_interface }}"
-{% endif %}
-{% if http_client.source_address is defined %}
+{% endif %}
+{% if http_client.source_address is vyos_defined %}
--interface "{{ http_client.source_address }}"
-{% endif %}
{% endif %}