1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Removed caching from contains due to the use of a list (non hashable) as parameter

This commit is contained in:
Adolfo Gómez García 2024-10-02 00:15:09 +02:00
parent 81c5429f40
commit ad2b746f03
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -236,7 +236,6 @@ def networks_from_str(
"""
return [network_from_str(str_net, version) for str_net in re.split('[;,]', networks_str) if str_net]
@functools.lru_cache(maxsize=32)
def contains(
networks: typing.Union[str, NetworkType, list[NetworkType]],
ip: typing.Union[str, int],