@@ -43,18 +43,22 @@ namespace Thunder {
4343 : Core::JSON::Container()
4444 , Port(2200 )
4545 , Binding(" 0.0.0.0" )
46+ , Interface(" eth0" )
4647 {
4748 Add (_T (" port" ), &Port);
4849 Add (_T (" binding" ), &Binding);
50+ Add (_T (" interface" ), &Interface);
4951 }
5052
5153 MessageControl::Config::NetworkNode::NetworkNode (const NetworkNode& copy)
5254 : Core::JSON::Container()
5355 , Port(copy.Port)
5456 , Binding(copy.Binding)
57+ , Interface(copy.Interface)
5558 {
5659 Add (_T (" port" ), &Port);
5760 Add (_T (" binding" ), &Binding);
61+ Add (_T (" interface" ), &Interface);
5862 }
5963
6064 MessageControl::MessageControl ()
@@ -115,8 +119,8 @@ namespace Thunder {
115119 _config.FileName = service->VolatilePath () + _config.FileName .Value ();
116120 Announce (new Publishers::FileOutput (abbreviate, _config.FileName .Value ()));
117121 }
118- if ((_config.Remote .IsSet () == true ) && (_config.Remote .Binding .Value ().empty () == false ) && (_config.Remote .Port .Value () != 0 )) {
119- Announce (new Publishers::UDPOutput (abbreviate, Core::NodeId (_config.Remote .NodeId ()), _service));
122+ if ((_config.Remote .IsSet () == true ) && (_config.Remote .Binding .Value ().empty () == false ) && (_config.Remote .Port .Value () != 0 ) && (_config. Remote . Interface . Value (). empty () == false ) ) {
123+ Announce (new Publishers::UDPOutput (abbreviate, Core::NodeId (_config.Remote .NodeId ()), _service, _config. Remote . Interface . Value () ));
120124 }
121125
122126 _webSocketExporter.Initialize (service, _config.MaxExportConnections .Value ());
0 commit comments