diff options
author | Rusty Lynch <rusty.lynch@intel.com> | 2012-09-18 12:52:31 -0700 |
---|---|---|
committer | Rusty Lynch <rusty.lynch@intel.com> | 2012-09-18 12:52:31 -0700 |
commit | 617b51495dfffddc4b5693698c6872f54e34dcb6 (patch) | |
tree | d8e7fde82cce89c7eb53a5b9097b4b3dda7f0225 | |
parent | a2d0d397c8bf3e0f20fe07d254f56161045f8725 (diff) | |
download | remotecontrol-617b51495dfffddc4b5693698c6872f54e34dcb6.tar.gz remotecontrol-617b51495dfffddc4b5693698c6872f54e34dcb6.tar.bz2 remotecontrol-617b51495dfffddc4b5693698c6872f54e34dcb6.zip |
Fix crasher bug where remotecontrol.py was iterating over all the
system interfaces and passing that interface name to a function that
could only deal with traditional network interface names.
-rw-r--r--[-rwxr-xr-x] | remotecontrol/remoteserver.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/remotecontrol/remoteserver.py b/remotecontrol/remoteserver.py index 50a50e3..653a49f 100755..100644 --- a/remotecontrol/remoteserver.py +++ b/remotecontrol/remoteserver.py @@ -113,8 +113,11 @@ def start(): port = 8080 ws_port = 9999 for interface in interfaces(): - if AF_INET not in ifaddresses(interface): - continue + try: + if AF_INET not in ifaddresses(interface): + continue + except ValueError: + continue for link in ifaddresses(interface)[AF_INET]: address = link['addr'] if address != '127.0.0.1': |