Skip to content

Fix Call to IPAddress.is_private() removed method. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 = [],
)
)