summaryrefslogtreecommitdiff
path: root/data/templates/system/curlrc.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/system/curlrc.j2')
-rw-r--r--data/templates/system/curlrc.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/system/curlrc.j2 b/data/templates/system/curlrc.j2
new file mode 100644
index 000000000..be4efe8ba
--- /dev/null
+++ b/data/templates/system/curlrc.j2
@@ -0,0 +1,6 @@
+{% if http_client.source_interface is vyos_defined %}
+--interface "{{ http_client.source_interface }}"
+{% endif %}
+{% if http_client.source_address is vyos_defined %}
+--interface "{{ http_client.source_address }}"
+{% endif %}