zeromq/czmq — pull request #273 by shubred1 (2013-10-16 23:12:05+00:00)
Title: ﻿make zbeacon interface selection more robust

* Bug fix: s_get_interface() was checking for NULL pointer instead
of empty string to determine if the interface was set.

* If the interface isn't set then the source address and thus the
hostname wasn't being populated. Now if there is only one IP
address on the it is set as source address; otherwise it is set
to INADDR_ANY.

* Commented out s_wireless_nic() function and removed call to it as
it was not doing anything. Previous to pull request #264 it would
"select" the wireless interface or the specified interface,
whichever was encountered first (bug). But right after that the
broadcast address was being hard coded to INADDR_BROADCAST which
nullified the selected address/interface.