Skip to content

Commit

Permalink
Merge pull request #19 from lwindg/develop
Browse files Browse the repository at this point in the history
Bugfix: default gateway can't be updated sometimes
  • Loading branch information
imZack committed Oct 23, 2015
2 parents 637898c + af744e2 commit 9b5c4fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions build-deb/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
sanji-bundle-route (0.9.5-1) unstable; urgency=low

* Bugfix: default gateway cannot be updated at some scenario.

-- Aeluin Chen <[email protected]> Fri, 23 Oct 2015 10:20:25 +0800

sanji-bundle-route (0.9.4-2) unstable; urgency=low

* Update building policy for debian package.
Expand Down
2 changes: 1 addition & 1 deletion bundle.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "route",
"version": "0.9.4",
"version": "0.9.5",
"author": "Aeluin Chen",
"email": "[email protected]",
"description": "Handle the routing table",
Expand Down
2 changes: 1 addition & 1 deletion route.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_default(self):
"""
gws = netifaces.gateways()
default = {}
if gws['default'] != {}:
if gws['default'] != {} and netifaces.AF_INET in gws['default']:
gw = gws['default'][netifaces.AF_INET]
else:
return default
Expand Down

0 comments on commit 9b5c4fb

Please sign in to comment.