simulate mode fix problem with Broadcast camera connection
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
/// Copyright (c) 2017 Sensus Metering Systems
|
||||
///
|
||||
using System.Net;
|
||||
using Common;
|
||||
using log4net;
|
||||
|
||||
namespace TBF.Rig.Network.Adapter
|
||||
@@ -37,7 +38,11 @@ namespace TBF.Rig.Network.Adapter
|
||||
AdapterInfo netadapter = AdapterInfo.GetNetAdapter(netadapterCfg.Description);
|
||||
ipAddress = netadapter.IPAddress;
|
||||
netMask = netadapter.NetMask;
|
||||
broadcastAddress = netadapter.GetBroadcastAddress();
|
||||
|
||||
if (this.Cfg.DebugLevel != DebugMode.Simulate)
|
||||
{
|
||||
broadcastAddress = netadapter.GetBroadcastAddress();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user