diff --git a/README.md b/README.md index b7f5557..20659f0 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,19 @@ Here are the options that work right now. -H, --header HEADER Add a header. Use it multiple times to add multiple headers. + -p, --proxy PROXY Use the specified HTTP/SOCKS proxy. + Specify as protocol://hostname:port + Pass an empty string ("") or 'none' to + disable proxy (connect directly). + Supported protocols: + http + socks4 + socks4a + socks5 + socks5h + (Note: socks5 leaks DNS. Use socks5h + for e.g., Tor.) + ## Scope rsstube is not a tool for generating new feeds where they don't already exist. It is a tool for locating official feed URLs provided by the site. diff --git a/src/parse_options.py b/src/parse_options.py index 230a3b8..d6c8965 100644 --- a/src/parse_options.py +++ b/src/parse_options.py @@ -118,7 +118,7 @@ def parse_options(params): options["output_format"] = str.lower(arg) arg_count += 2 elif opt in ("-p", "--proxy"): - if str.lower(arg) == "none": + if str.lower(arg) == "none" or arg == "": options["curl_args"]["proxy"] = False else: options["curl_args"]["proxy"] = True