Make interface binder more verbose.
This commit is contained in:
parent
41e2ab6396
commit
7a3eaf2847
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Reference in a new issue