Skip to content

Commit

Permalink
disable tldextract caching
Browse files Browse the repository at this point in the history
Fetching updated TLD lists is already disabled, so the default TLD list
that is included with the library will always be used and there is
nothing to cache. Explicitly disabling the cache prevents possible
occurences of john-kurkowski/tldextract#254.
  • Loading branch information
mpkuth committed Nov 9, 2022
1 parent 6f97b35 commit 1789ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypac/wpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
logger = logging.getLogger(__name__)

# First use of tldextract goes online to update its Public Suffix List cache. Stop it.
no_fetch_extract = tldextract.TLDExtract(suffix_list_urls=None)
no_fetch_extract = tldextract.TLDExtract(cache_dir=None, suffix_list_urls=None)


def proxy_urls_from_dns(local_hostname=None):
Expand Down

0 comments on commit 1789ff5

Please sign in to comment.