]> sjero.net Git - wget/blobdiff - src/init.c
Add --bindport option to force TCP source port.
[wget] / src / init.c
index 804e473aae2f238fdf28cfccd7a17a9a31c68a8a..fd8eb0c0e9c94673e9b38d124f3a89a9e2199a8d 100644 (file)
@@ -138,6 +138,7 @@ static const struct {
   { "backups",          &opt.backups,           cmd_number },
   { "base",             &opt.base_href,         cmd_string },
   { "bindaddress",      &opt.bind_address,      cmd_string },
+  { "bindport",         &opt.bind_port,         cmd_number },
   { "bodydata",         &opt.body_data,         cmd_string },
   { "bodyfile",         &opt.body_file,         cmd_string },
 #ifdef HAVE_SSL
@@ -150,7 +151,7 @@ static const struct {
   { "certificatetype",  &opt.cert_type,         cmd_cert_type },
   { "checkcertificate", &opt.check_cert,        cmd_boolean },
 #endif
-  { "chooseconfig",     &opt.choose_config,    cmd_file },
+  { "chooseconfig",     &opt.choose_config,     cmd_file },
   { "connecttimeout",   &opt.connect_timeout,   cmd_time },
   { "contentdisposition", &opt.content_disposition, cmd_boolean },
   { "contentonerror",   &opt.content_on_error,  cmd_boolean },
@@ -821,16 +822,16 @@ setval_internal_tilde (int comind, const char *com, const char *val)
       pstring = commands[comind].place;
       home = home_dir ();
       if (home)
-       {
-         homelen = strlen (home);
-         while (homelen && ISSEP (home[homelen - 1]))
-            home[--homelen] = '\0';
-
-         /* Skip the leading "~/". */
-         for (++val; ISSEP (*val); val++)
-           ;
-         *pstring = concat_strings (home, "/", val, (char *)0);
-       }
+        {
+          homelen = strlen (home);
+          while (homelen && ISSEP (home[homelen - 1]))
+                 home[--homelen] = '\0';
+
+          /* Skip the leading "~/". */
+          for (++val; ISSEP (*val); val++)
+            ;
+          *pstring = concat_strings (home, "/", val, (char *)0);
+        }
     }
   return ret;
 }