Skip to content

Commit

Permalink
gpodder.util: Fix FreeBSD network detection (bug 1730)
Browse files Browse the repository at this point in the history
The unix_get_active_interfaces() function only partially works on
FreeBSD. Wireless interfaces do not have a status of "active", but
rather "associated".
  • Loading branch information
wesnm authored and thp committed Dec 7, 2013
1 parent 2008d44 commit 2e6ea21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpodder/util.py
Expand Up @@ -1685,7 +1685,7 @@ def osx_get_active_interfaces():
process = subprocess.Popen(['ifconfig'], stdout=subprocess.PIPE)
stdout, _ = process.communicate()
for i in re.split('\n(?!\t)', stdout, re.MULTILINE):
b = re.match('(\\w+):.*status: active$', i, re.MULTILINE | re.DOTALL)
b = re.match('(\\w+):.*status: (active|associated)$', i, re.MULTILINE | re.DOTALL)
if b:
yield b.group(1)

Expand Down

0 comments on commit 2e6ea21

Please sign in to comment.