]> sjero.net Git - wget/blobdiff - src/options.h
[svn] Merging fix #20499: MAX_REDIRECTIONS should be configurable.
[wget] / src / options.h
index 0267e37668c0e08c89274f67888c53e056da2677..7fda95e3a47098ad010ea328c24beff0345f2d86 100644 (file)
@@ -36,8 +36,10 @@ struct options
   bool background;             /* Whether we should work in background. */
   bool ignore_length;          /* Do we heed content-length at all?  */
   bool recursive;              /* Are we recursive? */
-  bool spanhost;                       /* Do we span across hosts in
+  bool spanhost;               /* Do we span across hosts in
                                   recursion? */
+  int  max_redirect;            /* Maximum number of times we'll allow
+                                   a page to redirect. */
   bool relative_only;          /* Follow only relative links. */
   bool no_parent;              /* Restrict access to the parent
                                   directory.  */