sphaero/pyre — pull request #3 by fieldOfView (2014-11-14 12:47:40+00:00)
Title: Fix picked interface

Instead of picking the highest value ipaddress (192.168.x.x > 10.0.x.x), it is better to respect the order in which the system reports the interfaces. The proposed patch maintains an index on listed interfaces so even if they get shuffled in the python dict we can pick the first index (ignoring lo0/127.0.0.1).