Add proxy option to readme.
This commit is contained in:
parent
f673411ed2
commit
1d59b5ed91
13
README.md
13
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
|
-H, --header HEADER Add a header. Use it multiple times to
|
||||||
add multiple headers.
|
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
|
## 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.
|
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.
|
||||||
|
|
|
@ -118,7 +118,7 @@ def parse_options(params):
|
||||||
options["output_format"] = str.lower(arg)
|
options["output_format"] = str.lower(arg)
|
||||||
arg_count += 2
|
arg_count += 2
|
||||||
elif opt in ("-p", "--proxy"):
|
elif opt in ("-p", "--proxy"):
|
||||||
if str.lower(arg) == "none":
|
if str.lower(arg) == "none" or arg == "":
|
||||||
options["curl_args"]["proxy"] = False
|
options["curl_args"]["proxy"] = False
|
||||||
else:
|
else:
|
||||||
options["curl_args"]["proxy"] = True
|
options["curl_args"]["proxy"] = True
|
||||||
|
|
Loading…
Reference in New Issue