diff --git a/README.rst b/README.rst index 3fe60799..8ad357f0 100644 --- a/README.rst +++ b/README.rst @@ -160,7 +160,7 @@ For further information, please read the manpage: $ man slpkg -Edit the :code:`/etc/slpkg/slpkg.toml` file: +Edit the configuration :code:`/etc/slpkg/slpkg.toml` file: .. code-block:: bash diff --git a/configs/slpkg.toml b/configs/slpkg.toml index 8112eb72..51f507b7 100644 --- a/configs/slpkg.toml +++ b/configs/slpkg.toml @@ -68,7 +68,7 @@ LFTP_MIRROR_OPTIONS = "-c mirror --parallel=100 --only-newer" # If you are going to use a proxy server, try to fill in these variables. # Choose between http or socks proxy type, not both. -# If you want to use a socks proxy, you need to install the PySocks package. +# For a socks proxy, you need to install the PySocks package. # https://urllib3.readthedocs.io/en/stable/advanced-usage.html#socks-proxies HTTP_PROXY_ADDRESS = "" SOCKS_PROXY_ADDRESS = "" diff --git a/slpkg/check_updates.py b/slpkg/check_updates.py index 825d3dc5..6d087f73 100644 --- a/slpkg/check_updates.py +++ b/slpkg/check_updates.py @@ -175,6 +175,7 @@ class CheckUpdates(Configs): http = ProxyManager(f'{self.http_proxy_address}', headers=proxy_default_headers) elif self.socks_proxy_address: + # https://urllib3.readthedocs.io/en/stable/advanced-usage.html#socks-proxies try: # Try to import PySocks if it's installed. from urllib3.contrib.socks import SOCKSProxyManager except (ModuleNotFoundError, ImportError):