The filterInterfaces function reduces the useable network interfaces
for peer discovery. Due to two changes introduced in v1.6.4^0 and
v1.6.5^1, a self-discovery over a loopback device was no longer
possible.
For reasons, a device either holds the loopback flag or the multicast
flag, not both together. This commit reflects this.
Furthermore, some refactoring of the filterInterfaces function was
performed to ease its understandability.
The
filterInterfaces
function reduces the useable network interfaces for peer discovery. Due to two changes introduced in v1.6.4^0 and v1.6.5^1, a self-discovery over a loopback device was no longer possible.For reasons, a device either holds the loopback flag or the multicast flag, not both together. This commit reflects this.
Furthermore, some refactoring of the
filterInterfaces
function was performed to ease its understandability.