aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-09-18 21:54:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-09-18 21:54:46 +0000
commit7eafb0f3256d7842fc808268a72105c93cdcdfc0 (patch)
tree1123763224d8ba02912213a1c278a873b2c40039 /src
parentc9c7fcf411cdb46bbf1d15191db437f45dffd178 (diff)
Stephen Kick's --interface was added
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 29565a163..06d5221ae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -243,6 +243,7 @@ static void help(void)
" -H/--header <line> Custom header to pass to server. (H)\n"
" -i/--include Include the HTTP-header in the output (H)\n"
" -I/--head Fetch document info only (HTTP HEAD/FTP SIZE)\n"
+ " --interface <interface> Specify the interface to be used\n"
" -K/--config Specify which config file to read\n"
" -l/--list-only List only names of an FTP directory (F)\n"
" -L/--location Follow Location: hints (H)\n"
@@ -299,6 +300,7 @@ struct Configurable {
char *headerfile;
char remotefile;
char *ftpport;
+ char *interface;
unsigned short porttouse;
char *range;
int low_speed_limit;
@@ -440,6 +442,7 @@ static int getparameter(char *flag, /* f or -long-flag */
struct LongShort aliases[]= {
{"9", "crlf", FALSE},
{"8", "stderr", TRUE},
+ {"7", "interface", TRUE},
{"2", "sslv2", FALSE},
{"3", "sslv3", FALSE},
@@ -609,6 +612,9 @@ static int getparameter(char *flag, /* f or -long-flag */
else
config->errors = stdout;
break;
+ case '7': /* there is no short letter for this */
+ /* interface */
+ GetStr(&config->interface, nextarg);
case '#': /* added 19990617 larsa */
config->progressmode ^= CURL_PROGRESS_BAR;
break;
@@ -1495,6 +1501,7 @@ int main(int argc, char *argv[])
curl_easy_setopt(curl, CURLOPT_STDERR, config.errors);
curl_easy_setopt(curl, CURLOPT_WRITEINFO, config.writeout);
curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, config.proxytunnel);
+ curl_easy_setopt(curl, CURLOPT_INTERFACE, config.interface);
if((config.progressmode == CURL_PROGRESS_BAR) &&
!(config.conf&(CONF_NOPROGRESS|CONF_MUTE))) {