diff --git a/pybbox/bboxApiURL.py b/pybbox/bboxApiURL.py index 34110d0..44c6049 100644 --- a/pybbox/bboxApiURL.py +++ b/pybbox/bboxApiURL.py @@ -50,7 +50,7 @@ def build_url_request(self): :return: url string """ # Check if the ip is LAN or WAN - if net.IPAddress(self.ip).is_private(): + if net.IPAddress(self.ip).is_ipv4_private_use(): url = "http://{}".format(self.ip) self.authentication_type = BboxConstant.AUTHENTICATION_TYPE_LOCAL else: diff --git a/setup.py b/setup.py index eed33fa..c57ff18 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ name = 'pybbox', packages = ['pybbox'], # this must be the same as the name above install_requires = ['netaddr','requests'], - version = '0.0.5-alpha', + version = '0.0.6-alpha', description = 'a simple python3 library for the Bouygues BBox Routeur API', author = 'Hydreliox', author_email = 'hydreliox@gmail.com', url = 'https://github.com/HydrelioxGitHub/pybbox', # use the URL to the github repo - download_url = 'https://github.com/HydrelioxGitHub/pybbox/tarball/0.0.5-alpha', + download_url = 'https://github.com/HydrelioxGitHub/pybbox/tarball/0.0.6-alpha', keywords = ['bbox', 'Bouygues', 'routeur', 'API'], # arbitrary keywords classifiers = [], -) \ No newline at end of file +)