From f2a664953c353527a7e13ab871aafb7e6316a1d3 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 26 Jan 2022 21:33:27 -0800 Subject: [PATCH] Assume IPv6 is public address * Fixes #1629 --- plexpy/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/helpers.py b/plexpy/helpers.py index cd4bf921..6cd28a36 100644 --- a/plexpy/helpers.py +++ b/plexpy/helpers.py @@ -705,7 +705,7 @@ def sanitize(obj): def is_public_ip(host): ip = is_valid_ip(get_ip(host)) - if ip and ip.iptype() == 'PUBLIC': + if ip and (ip.iptype() == 'PUBLIC' or ip.version() == 6): return True return False