diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LYGlobalDefs.h | 3 | ||||
-rw-r--r-- | src/LYMain.c | 8 |
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\ |