Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pybbox/bboxApiURL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]',
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 = [],
)
)