Browse Source

Make interface binder more verbose.

master
Starbeamrainbowlabs 5 years ago
parent
commit
7a3eaf2847
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      PixelHub-Server/PixelHub/DiscoveryBeacon.cs

+ 2
- 0
PixelHub-Server/PixelHub/DiscoveryBeacon.cs View File

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