Commit 83730977 authored by Francesco Poldi's avatar Francesco Poldi

Update Proxy_host default vars

parent 273cd12f
......@@ -51,7 +51,7 @@ class Config:
Pandas_clean = True
Lowercase = True
Pandas_au = True
Proxy_host = None
Proxy_host = ""
Proxy_port = 0
Proxy_type = None
Tor_control_port = 9051
......
......@@ -48,7 +48,7 @@ user_agent_list = [
def get_connector(config):
logme.debug(__name__+':get_connector')
_connector = None
if config.Proxy_host is not None:
if config.Proxy_host:
if config.Proxy_host.lower() == "tor":
_connector = SocksConnector(
socks_ver=SocksVer.SOCKS5,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment