mkasa/ffton — pull request #1 by tomoakin (2012-05-19 02:40:21+00:00)
Title: source_ip determination change

http://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib
The way in answer 37 seems to work on more environments.

#ifndef __APPLE__ is assumed to be a trivial error.