about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-09-19 00:27:19 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2019-09-19 00:27:19 +0000
commita711874c2247d95021af38c184829d194f4a9ecc (patch)
tree2009be382da07415ed0ab5a6fc4d9f68b5b75a52 /src
parente26373738c0e38440fb51bb61e615984a5a42637 (diff)
downloadlynx-snapshots-a711874c2247d95021af38c184829d194f4a9ecc.tar.gz
snapshot of project "lynx", label v2-9-0dev_4e
Diffstat (limited to 'src')
-rw-r--r--src/LYGlobalDefs.h3
-rw-r--r--src/LYMain.c8
2 files changed, 9 insertions, 2 deletions
diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h
index ac1df5fb..5bf1f2e4 100644
--- a/src/LYGlobalDefs.h
+++ b/src/LYGlobalDefs.h
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYGlobalDefs.h,v 1.150 2019/01/25 02:00:58 tom Exp $
+ * $LynxId: LYGlobalDefs.h,v 1.151 2019/09/18 22:20:44 Steffen.Nurpmeso Exp $
  *
  * global variable definitions
  */
@@ -441,6 +441,7 @@ extern "C" {
     extern BOOLEAN debug_display_partial;	/* show with MessageSecs delay */
     extern BOOLEAN display_partial_flag;	/* permanent flag, not mutable */
 #endif
+    extern char *socks5_proxy;
     extern char *form_post_data;	/* User data for post form */
     extern char *form_get_data;	/* User data for get form */
     extern char *http_error_file;	/* Place HTTP status code in this file */
diff --git a/src/LYMain.c b/src/LYMain.c
index db53bbb5..38a9c4d3 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMain.c,v 1.285 2019/01/25 00:06:42 tom Exp $
+ * $LynxId: LYMain.c,v 1.286 2019/09/18 22:20:44 Steffen.Nurpmeso Exp $
  */
 #include <HTUtils.h>
 #include <HTTP.h>
@@ -636,6 +636,8 @@ BOOLEAN debug_display_partial = FALSE;	/* Show with MessageSecs delay */
 int partial_threshold = -1;	/* # of lines to be d/l'ed until we repaint */
 #endif
 
+char *socks5_proxy = NULL;
+
 BOOLEAN LYNonRestartingSIGWINCH = FALSE;
 BOOLEAN LYReuseTempfiles = FALSE;
 BOOLEAN LYUseBuiltinSuffixes = TRUE;
@@ -3907,6 +3909,10 @@ saves session to that file on exit"
       "toggles display of transfer rate"
    ),
 #endif
+   PARSE_STR(
+      "socks5-proxy",	2|NEED_LYSTRING_ARG,	socks5_proxy,
+      "=URL\n(via which) SOCKS5 proxy to connect (unrelated to -nosocks!)"
+   ),
    PARSE_SET(
       "soft_dquotes",	4|TOGGLE_ARG,		soft_dquotes,
       "toggles emulation of the old Netscape and Mosaic\n\