Skip to content

Commit 86d5e05

Browse files
committed
Fixed returning missing NLog TCP instance
1 parent f9abcf5 commit 86d5e05

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Logbert/Receiver/NLogTcpReceiver/NLogTcpReceiverSettings.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
using System.Net.Sockets;
3838

3939
using Com.Couchcoding.Logbert.Helper;
40+
using System.Net;
4041

4142
namespace Com.Couchcoding.Logbert.Receiver.NlogTcpReceiver
4243
{
@@ -262,7 +263,9 @@ public ILogProvider GetConfiguredInstance()
262263
Settings.Default.SaveSettings();
263264
}
264265

265-
return null;
266+
return new NlogTcpReceiver(
267+
(int)nudPort.Value
268+
, new IPEndPoint(ipAddress.Address, (int)nudPort.Value));
266269
}
267270
}
268271
}

0 commit comments

Comments
 (0)