Skip to content

Commit

Permalink
fixup! Make it possible to download anything through a proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Dec 26, 2024
1 parent 5b97927 commit 758c7f0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PyFunceble/cli/scripts/iana.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ def start(self, max_workers: Optional[int] = None) -> "IanaDBGenerator":
self.UPSTREAM_LINK,
certificate_validation=(
PyFunceble.storage.CONFIGURATION.verify_ssl_certificate
if PyFunceble.storage.CONFIGURATION
else True
),
own_proxy_handler=True,
proxies=PyFunceble.storage.PROXY,
Expand Down
2 changes: 2 additions & 0 deletions PyFunceble/cli/scripts/public_suffix.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def start(self, max_workers: Optional[int] = None):
self.UPSTREAM_LINK,
certificate_validation=(
PyFunceble.storage.CONFIGURATION.verify_ssl_certificate
if PyFunceble.storage.CONFIGURATION
else True
),
own_proxy_handler=True,
proxies=PyFunceble.storage.PROXY,
Expand Down
2 changes: 2 additions & 0 deletions PyFunceble/cli/system/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ def download_file(file: str, destination: str) -> bool:
file,
certificate_validation=(
PyFunceble.storage.CONFIGURATION.verify_ssl_certificate
if PyFunceble.storage.CONFIGURATION
else True
),
own_proxy_handler=True,
proxies=PyFunceble.storage.PROXY,
Expand Down
2 changes: 2 additions & 0 deletions PyFunceble/cli/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def get_upstream_version() -> Box:
proxies=PyFunceble.storage.PROXY,
certificate_validation=(
PyFunceble.storage.CONFIGURATION.verify_ssl_certificate
if PyFunceble.storage.CONFIGURATION
else True
),
).download_text()
),
Expand Down
2 changes: 2 additions & 0 deletions PyFunceble/config/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ def download_remote_config(src: str, dest: str = None) -> None:
src,
certificate_validation=(
PyFunceble.storage.CONFIGURATION.verify_ssl_certificate
if PyFunceble.storage.CONFIGURATION
else True
),
own_proxy_handler=True,
proxies=config["proxies"],
Expand Down

0 comments on commit 758c7f0

Please sign in to comment.