Add proxy option to readme.

This commit is contained in:
0x80 2022-03-27 00:00:00 +00:00
parent f673411ed2
commit 1d59b5ed91
Signed by: 0x80
GPG Key ID: 68368BCBC000EF51
2 changed files with 14 additions and 1 deletions

View File

@ -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.

View File

@ -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