summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-15 20:58:28 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-15 20:58:28 +0200
commitc24cecc325defc87973b28d288b23eca8368927d (patch)
tree051a18b72a40bc9405235c8487157493e3b83fbb /data
parent2dd1392cfe28518658604c88e606c7aec03936a7 (diff)
parent63052b8906871dc314945922e7f27ef24e114a45 (diff)
downloadvyos-1x-c24cecc325defc87973b28d288b23eca8368927d.tar.gz
vyos-1x-c24cecc325defc87973b28d288b23eca8368927d.zip
Merge branch 'curlrc' of github.com:c-po/vyos-1x into current
* 'curlrc' of github.com:c-po/vyos-1x: http-client: T2651: support specifying source-interface/address for curl xml: T2651: provide general source-interface include file
Diffstat (limited to 'data')
-rw-r--r--data/templates/system/curlrc.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/system/curlrc.tmpl b/data/templates/system/curlrc.tmpl
new file mode 100644
index 000000000..675e35a0c
--- /dev/null
+++ b/data/templates/system/curlrc.tmpl
@@ -0,0 +1,8 @@
+{% if http_client is defined %}
+{% if http_client.source_interface is defined %}
+--interface "{{ http_client.source_interface }}"
+{% endif %}
+{% if http_client.source_address is defined %}
+--interface "{{ http_client.source_address }}"
+{% endif %}
+{% endif %}