Make interface binder more verbose.

This commit is contained in:
Starbeamrainbowlabs 2016-10-29 14:34:01 +01:00
parent 41e2ab6396
commit 7a3eaf2847

View file

@ -153,11 +153,13 @@ namespace PixelHub.Net
if(NetworkInterfaceName != string.Empty) if(NetworkInterfaceName != string.Empty)
{ {
logger.WriteLine("Discovering interfaces.");
beacon.Client.SetSocketOption( beacon.Client.SetSocketOption(
SocketOptionLevel.IP, SocketOptionLevel.IP,
SocketOptionName.MulticastInterface, SocketOptionName.MulticastInterface,
(int)IPAddress.HostToNetworkOrder(NetTools.GetNetworkIndexByName4(NetworkInterfaceName)) (int)IPAddress.HostToNetworkOrder(NetTools.GetNetworkIndexByName4(NetworkInterfaceName))
); );
logger.WriteLine("Choosing interface with name {0}", NetworkInterfaceName);
} }
Active = true; Active = true;