From 63052b8906871dc314945922e7f27ef24e114a45 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 15 Jul 2020 20:56:53 +0200 Subject: http-client: T2651: support specifying source-interface/address for curl Please note that either interface or address can be configured. system { options { http-client { source-interface eth0 source-address 1.1.1.1 } } } --- data/templates/system/curlrc.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data/templates/system/curlrc.tmpl (limited to 'data') 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 %} -- cgit v1.2.3